aspose file tools*
The moose likes JDBC and the fly likes setBoolean - not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "setBoolean - not working properly" Watch "setBoolean - not working properly" New topic
Author

setBoolean - not working properly

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
That subject doesn't says much, but I really can't figure out what's wrong with my code or configuration.

On a mysql 4.1 table I've a boolean field called switchUnique


On a class which dialogs with the table above I've got the following method

As you can see there's a line which show me what actually is the boolean value of the object wich I'm trying to store on the table fields.

The problem is: the database always store a false value even if the logger above says that is a true value.

Any helps or suggestions are welcome.
Thanks in advance.

[ October 09, 2006: Message edited by: Alessandro Ilardo ]
[ October 09, 2006: Message edited by: Alessandro Ilardo ]

trying to decode a woman mind....
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

I have never worked on mysql but only thing I can suggest to try this one



Shailesh
[ October 09, 2006: Message edited by: Shailesh Chandra ]

Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
yes, it now works. But I'm still wondering what didn't work with setBoolean...

Anyway, thanks for your help.
 
Consider Paul's rocket mass heater.
 
subject: setBoolean - not working properly