• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

setBoolean - not working properly

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic