PreparedStatement.setString with null - Mailing list pgsql-jdbc

From Tim Penhey
Subject PreparedStatement.setString with null
Date
Msg-id 415BD807.6040103@penhey.net
Whole thread Raw
Responses Re: PreparedStatement.setString with null
Re: PreparedStatement.setString with null
List pgsql-jdbc
What is this supposed to do?

    PreparedStatement stat = connection.prepareStatement("update table1
set col1 = ?");
    stat.setString(1, null);

Will this make a null value in the database or an empty string?  Do we
have to use the setNull(1, Types.VARCHAR) in order to get a null value
entered?

Thanks,
Tim


pgsql-jdbc by date:

Previous
From: atommax@tiscali.dk
Date:
Subject: Download source code for pg74.215.jdbc3 driver
Next
From: Kris Jurka
Date:
Subject: Re: Download source code for pg74.215.jdbc3 driver