]> granicus.if.org Git - postgresql/commit
Fix the setXXXStream methods. If passed a null InputStream, convert
authorKris Jurka <books@ejurka.com>
Tue, 3 Feb 2004 05:13:56 +0000 (05:13 +0000)
committerKris Jurka <books@ejurka.com>
Tue, 3 Feb 2004 05:13:56 +0000 (05:13 +0000)
commit9287630fbc2e29cd858a5a05eba0a9dd8e756ef3
tree745a9108c08712e3ac267e5e4edc266bc05d6480
parent7ca2bff95f2b94ebd0e1811d2b5534d759f36de6
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.
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
src/interfaces/jdbc/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
src/interfaces/jdbc/org/postgresql/test/jdbc2/PreparedStatementTest.java [new file with mode: 0644]