From bb7b71826d7a32752ace2f4574752a401fb7fa0f Mon Sep 17 00:00:00 2001 From: Peter Mount Date: Wed, 14 Feb 2001 17:45:17 +0000 Subject: [PATCH] Web Feb 14 17:29:00 GMT 2001 peter@retep.org.uk - Fixed bug in LargeObject & BlobOutputStream where the stream's output was not flushed when either the stream or the blob were closed. - Fixed PreparedStatement.setBinaryStream() where it ignored the length --- src/interfaces/jdbc/CHANGELOG | 5 + src/interfaces/jdbc/build.xml | 3 +- .../postgresql/jdbc2/PreparedStatement.java | 4 +- .../largeobject/BlobOutputStream.java | 1 + .../postgresql/largeobject/LargeObject.java | 30 ++- .../jdbc/org/postgresql/test/JDBC2Tests.java | 5 +- .../org/postgresql/test/jdbc2/BlobTest.java | 184 ++++++++++++++++++ 7 files changed, 224 insertions(+), 8 deletions(-) create mode 100644 src/interfaces/jdbc/org/postgresql/test/jdbc2/BlobTest.java diff --git a/src/interfaces/jdbc/CHANGELOG b/src/interfaces/jdbc/CHANGELOG index b02e4d3756..5385507303 100644 --- a/src/interfaces/jdbc/CHANGELOG +++ b/src/interfaces/jdbc/CHANGELOG @@ -1,3 +1,8 @@ +Web Feb 14 17:29:00 GMT 2001 peter@retep.org.uk + - Fixed bug in LargeObject & BlobOutputStream where the stream's output + was not flushed when either the stream or the blob were closed. + - Fixed PreparedStatement.setBinaryStream() where it ignored the length + Tue Feb 13 16:33:00 GMT 2001 peter@retep.org.uk - More TestCases implemented. Refined the test suite api's. - Removed need for SimpleDateFormat in ResultSet.getDate() improving diff --git a/src/interfaces/jdbc/build.xml b/src/interfaces/jdbc/build.xml index e95c646f5d..5f09ed887b 100644 --- a/src/interfaces/jdbc/build.xml +++ b/src/interfaces/jdbc/build.xml @@ -3,7 +3,7 @@ build file to allow ant (http://jakarta.apache.org/ant/) to be used to build the PostgreSQL JDBC Driver. - $Id: build.xml,v 1.5 2001/02/07 09:13:20 peter Exp $ + $Id: build.xml,v 1.6 2001/02/14 17:45:13 peter Exp $ --> @@ -26,6 +26,7 @@ +