Sergio Morstabilini wrote:

Hi.

I'm using geotools 2.2 RC2 and I'm trying to use expressionBuilder to check 0 or null values. I use

ExpressionBuilder expressionBuilder = new ExpressionBuilder();
Filter myFilter = (Filter)ExpressionBuilder.parser("(myField = 0) OR (myField IS NULL)");

but I have problems with null values.
I tryed to use "(myField = NULL)" or "(NOT(myField < 0) AND NOT(myField > 0))" but without success.

Any hints?

There is a NULL filter is there not? I am afraid I do not use the ExpressionBuilder.parser myself, just build them by hand.
Jody



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to