• Post Reply Bookmark Topic Watch Topic
  • New Topic

setBoolean - not working properly  RSS feed

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, it now works. But I'm still wondering what didn't work with setBoolean...

Anyway, thanks for your help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!