1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

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
This commit is contained in:
Peter Mount
2001-02-14 17:45:17 +00:00
parent c1abe85529
commit bb7b71826d
7 changed files with 224 additions and 8 deletions

View File

@ -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<length) {
los.write(c);
c=x.read();
p++;
}
los.close();
} catch(IOException se) {