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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user