Reputation: 608
The following only wants a primitive boolean (true or false).
psmt.setBoolean(5, boolean) ; //wants primitive
What if I want to set the bit to null?
Sql server =
[bit] NULL
Upvotes: 1
Views: 1574
Reputation: 159844
You could use setNull
setNull
preparedStatement.setNull(5, Types.BOOLEAN);
Upvotes: 4