Retrieving a Bit value from a database server side
Posted: 24 May 2011, 14:45
Hi,
I am working on a java extension where I am trying to retrieve a bit value from an ms-sql database. When I try to retrieve the value as a Boolean it returns a null.
I can change it to an int in the database and then retrieve it as in int and then do a check to see if it is 1 or 0 but this seems over complicated.
Do I have to cast it as a different type?
Any ideas...?
Cheers
I am working on a java extension where I am trying to retrieve a bit value from an ms-sql database. When I try to retrieve the value as a Boolean it returns a null.
I can change it to an int in the database and then retrieve it as in int and then do a check to see if it is 1 or 0 but this seems over complicated.
Do I have to cast it as a different type?
Any ideas...?
Cheers