diff options
author | Peter Mount <peter@retep.org.uk> | 2001-02-14 17:45:17 +0000 |
---|---|---|
committer | Peter Mount <peter@retep.org.uk> | 2001-02-14 17:45:17 +0000 |
commit | bb7b71826d7a32752ace2f4574752a401fb7fa0f (patch) | |
tree | e273ace65b4d32e51e57d481c1be5099d7f3d4df /src/interfaces/jdbc/org/postgresql/largeobject/BlobOutputStream.java | |
parent | c1abe85529da1cd995896fb88492d353eafbfc8d (diff) | |
download | postgresql-bb7b71826d7a32752ace2f4574752a401fb7fa0f.tar.gz |
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
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/largeobject/BlobOutputStream.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/largeobject/BlobOutputStream.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/largeobject/BlobOutputStream.java b/src/interfaces/jdbc/org/postgresql/largeobject/BlobOutputStream.java index 0ac435a78f..3cba1c3702 100644 --- a/src/interfaces/jdbc/org/postgresql/largeobject/BlobOutputStream.java +++ b/src/interfaces/jdbc/org/postgresql/largeobject/BlobOutputStream.java @@ -92,6 +92,7 @@ public class BlobOutputStream extends OutputStream { */ public void close() throws IOException { try { + flush(); lo.close(); lo=null; } catch(SQLException se) { |