InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: Prepared Statement SetNull query


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.