I'm trying to set a value to null using the setNull clause of the prepared
statement. This does't seem to work for BIT datatype -- throws a
NullPointerException. Is this a known bug? Any help will be much
appreciated.
Thanks,
Chandika
PreparedStatement ps=con.prepareStatement("update TABLENAME set
ACTIVE=? where ID=?");
ps.setNull(1,Types.BIT);
ps.setInt(2,1);
System.out.println("Update :"+ps.execute());
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|