This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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.
 
GeeCON Prague 2014
 
subject: setBoolean - not working properly