Re: Recognize -1 as boolean=true
Posted by: Joachim Glink
Date: April 10, 2005 11:51PM

Mark Matthews wrote:
> Snowghost,
>
> That should still work. How are you creating your
> result set, what method are you calling on the
> result set, and what column type is it that
> contains the '-1' value?
>
> -Mark
>

Hello again,
I´ve done some research on the problem.
I´ve tried some simple queries without Hibernate to figure out if the problem is in Hibernate or MySQL. Unfortunately the error seems to be in the MySQL driver 3.1.7

If I do a simple query against a table with a column of type TINYINT(1) and get the value from this column with resultSet.getBoolean("col-name") values of '-1' are recognized as false - values of '1' as true.
The same code with an older version of the MySQL-Driver works just fine.

So does someone know how to get rid of this error?

Best regards
Snowghost

Options: ReplyQuote


Subject
Written By
Posted
Re: Recognize -1 as boolean=true
April 10, 2005 11:51PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.