I have a database column that I defined as BIT, because it looked like
that was the right thing to do for boolean values. The corresponding
object's field is declared as Boolean, of course.
When I try to run a query that uses the boolean field, I see the error
Caused by: java.sql.SQLException: ERROR: Unable to identify an
operator '=' for types 'bit' and 'boolean'
You will have to retype this query using an explicit cast
Here's the query:
SelectQuery query =
new SelectQuery(Member.class,
ExpressionFactory.matchExp("username",
username));
query.andQualifier(ExpressionFactory.matchExp("password",
password));
query.andQualifier(ExpressionFactory.matchExp("active",
Boolean.TRUE));
What have I done wrong: declare the database field as BIT (should it be
something else)? Use matchExp() improperly?
Thank you for your help.
Jim
-- Jim Menard, jim..o.com, http://www.io.com/~jimm/ "Anyway, I heard that The Artist Formerly Known As Prince has now renamed himself 'The Artist', making his full title 'The Artist, Formerly Known As The Artist Formerly Known As Prince, Formerly Known As Prince'." -- Screwtape
This archive was generated by hypermail 2.0.0 : Mon Dec 08 2003 - 13:58:18 EST