CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: jurka@svr1.postgresql.org 04/02/03 01:13:56
Modified files:
src/interfaces/jdbc/org/postgresql/jdbc1: Tag: REL7_4_STABLE
AbstractJdbc1Statement.java
src/interfaces/jdbc/org/postgresql/test/jdbc2: Tag:
REL7_4_STABLE
Jdbc2TestSuite.java
Added files:
src/interfaces/jdbc/org/postgresql/test/jdbc2: Tag:
REL7_4_STABLE
PreparedStatementTest.java
Log message:
Fix the setXXXStream methods. If passed a null InputStream, convert
this to a setNull call. The code originally would try to read the
whole stream in one call to read(), but this doesn't work. The
InputStream API makes it clear you must be prepared to loop and
continue reading if you didn't get the whole request on the first
try.
Per report from Martin Holz.