mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Tue Jan 30 22:24:00 GMT 2001 peter@retep.org.uk
- Fixed bug where Statement.setMaxRows() was a global setting. Now limited to just itself. - Changed LargeObject.read(byte[],int,int) to return the actual number of bytes read (used to be void). - LargeObject now supports InputStream's! - PreparedStatement.setBinaryStream() now works! - ResultSet.getBinaryStream() now returns an InputStream that doesn't copy the blob into memory first! - Connection.isClosed() now tests to see if the connection is still alive rather than if it thinks it's alive.
This commit is contained in:
@ -29,6 +29,7 @@ public class Statement implements java.sql.Statement
|
||||
SQLWarning warnings = null; // The warnings chain.
|
||||
int timeout = 0; // The timeout for a query (not used)
|
||||
boolean escapeProcessing = true;// escape processing flag
|
||||
int maxrows=0;
|
||||
|
||||
/**
|
||||
* Constructor for a Statement. It simply sets the connection
|
||||
@ -129,7 +130,7 @@ public class Statement implements java.sql.Statement
|
||||
*/
|
||||
public int getMaxRows() throws SQLException
|
||||
{
|
||||
return connection.maxrows;
|
||||
return maxrows;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -141,7 +142,7 @@ public class Statement implements java.sql.Statement
|
||||
*/
|
||||
public void setMaxRows(int max) throws SQLException
|
||||
{
|
||||
connection.maxrows = max;
|
||||
maxrows = max;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user