The NotNullCriterion seems to not be working for binary fields.
doesn't work, since the not null criterion is ignored and being replaced by '1' = '1'.
If I replace "f_foto" with "f_foto_filename", then everything works as expected.
Using 6.0-p20160519 power.
Code:
DSRequest fotoRequest = new DSRequest("fotos", DataSource.OP_FETCH); NotNullCriterion c = new NotNullCriterion("f_foto"); fotoRequest.setAdvancedCriteria(new AdvancedCriteria(c));
Code:
<field name="f_foto" type="imageFile" maxFileSize="10485760" /> <field name="f_foto_filename" type="text">
Using 6.0-p20160519 power.
Comment