From: Mike R. <mre...@gm...> - 2009-05-06 06:16:59
|
HSQLDB Devs, In the process of persisting and restoring a Boolean value from my application, I constantly get a False value back, regardless of input. I'm running the trunk version of hsqldb (which fixed another bug I was going to mail a patch for). My code execution eventually traces down to this code in JDBCPreparedStatement: JDBCPreparedStatement:3871 (setParameter) case Types.SQL_BIT_VARYING : if (o instanceof Boolean) { byte[] bytes = ((Boolean) o).booleanValue() ? new byte[] { 80 } : new byte[] { 0 }; o = new BinaryData(bytes, 1); break; } which correctly sets the BinaryData to one byte value of 0x80. Can someone point me to the corresponding section of code that populates the ResultSet? I'm having a hard time determining whether the correct value is being persisted correctly and then correctly read back in. My only visibility is in my application and the Boolean value I get back is false even if it should be true. Thanks for any help you can offer me! Mike Resler |