Subject | PreparedStatement, setInt() and NULL |
---|---|
Author | Yves Glodt |
Post date | 2008-08-05T13:05:54Z |
Hello,
I use Firebird 1.5 with Jaybird 2.1.6.
How can I insert a NULL-value into an Integer column?
pstmt.setInt(1, Null) fails since setInt expects a primitive "int", which can
not be null, but only 0 or 1.
How do others get their NULLs into the database?
Best regards,
Yves
I use Firebird 1.5 with Jaybird 2.1.6.
How can I insert a NULL-value into an Integer column?
pstmt.setInt(1, Null) fails since setInt expects a primitive "int", which can
not be null, but only 0 or 1.
How do others get their NULLs into the database?
Best regards,
Yves