Re: Recognize -1 as boolean=true
Posted by: Mark Matthews
Date: April 07, 2005 01:17PM

Joachim Glink wrote:
> Hello.
> I´m using Connector/J 3.1.7 with a MySQL 4.1.xx.
> With the old driver (3.0.x) the tinyint value -1
> was recognized as boolean=true (as the value 1 is
> handled). With the new driver (3.1.7) the value -1
> is recognized as boolean=false.
>
> Is there a parameter to configure the driver to
> handle -1 as true?
>
> Thanks.
> Snowghost


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

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Written By
Posted
Re: Recognize -1 as boolean=true
April 07, 2005 01:17PM


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.