From bb7b71826d7a32752ace2f4574752a401fb7fa0f Mon Sep 17 00:00:00 2001 From: Peter Mount Date: Wed, 14 Feb 2001 17:45:17 +0000 Subject: 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/org/postgresql/jdbc2/PreparedStatement.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2') diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java b/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java index a0f1d0713c4..93a175267df 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java @@ -431,9 +431,11 @@ public class PreparedStatement extends Statement implements java.sql.PreparedSta // is buffered internally anyhow, so there would be no performance // boost gained, if anything it would be worse! int c=x.read(); - while(c>-1) { + int p=0; + while(c>-1 && p