db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Bowen <s...@yahoo.com>
Subject Criteria.setIgnoreCase() and boolean fields?
Date Thu, 31 Mar 2005 08:02:13 GMT
Hello all. I have a class that sets a whole bunch of
conditions for a search. Most of the fields I search
on are text so using Criteria.setIgnoreCase() has been
working.

I recently added another search criteria, on a boolean
field:

criteria.add(NotificationPeer.IS_COMPLETE, false);

But since the setIgnoreCase() is set to true for the
Criteria, Torque tries to do an UPPER() on a boolean
field!

Can I avoid this somehow? Currently it crashes in a
rather ugly way ...

Thanks!
syg


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message