Thread: JDBC driver bug PreparedStatement.setNull(int,Types.BOOLEAN)

JDBC driver bug PreparedStatement.setNull(int,Types.BOOLEAN)

From
"David Green"
Date:
the JDBC driver does not handle setNull for boolean types.
=20
the switch statement in setNull should be expanded with a case that
checks for Types.BOOLEAN
=20

Re: JDBC driver bug PreparedStatement.setNull(int,Types.BOOLEAN)

From
Kris Jurka
Date:
On Wed, 8 Nov 2006, David Green wrote:

> the JDBC driver does not handle setNull for boolean types.
>
> the switch statement in setNull should be expanded with a case that
> checks for Types.BOOLEAN
>

The JDBC2 driver does not handle Types.BOOLEAN because that was added in
JDBC3.  See org.postgresql.jdbc3.AbstractJdbc3Statement#setNull to see how
this is handled.  I don't believe there's any problem with it.

Kris Jurka