• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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.
 
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic