mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Peter's Mega-Patch for JDBC...
see README_6.3 for list of changes
This commit is contained in:
@ -3,13 +3,10 @@ package postgresql;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* @version 1.0 15-APR-1997
|
||||
* @author <A HREF="mailto:adrian@hottub.org">Adrian Hall</A>
|
||||
*
|
||||
* A Statement object is used for executing a static SQL statement and
|
||||
* obtaining the results produced by it.
|
||||
*
|
||||
* Only one ResultSet per Statement can be open at any point in time.
|
||||
* <p>Only one ResultSet per Statement can be open at any point in time.
|
||||
* Therefore, if the reading of one ResultSet is interleaved with the
|
||||
* reading of another, each must have been generated by different
|
||||
* Statements. All statement execute methods implicitly close a
|
||||
@ -23,7 +20,6 @@ public class Statement implements java.sql.Statement
|
||||
Connection connection; // The connection who created us
|
||||
ResultSet result = null; // The current results
|
||||
SQLWarning warnings = null; // The warnings chain.
|
||||
int maxrows = 0; // maximum no. of rows; 0 = unlimited
|
||||
int timeout = 0; // The timeout for a query (not used)
|
||||
boolean escapeProcessing = true;// escape processing flag
|
||||
|
||||
@ -78,7 +74,7 @@ public class Statement implements java.sql.Statement
|
||||
* for this to happen when it is automatically closed. The
|
||||
* close method provides this immediate release.
|
||||
*
|
||||
* <B>Note:</B> A Statement is automatically closed when it is
|
||||
* <p><B>Note:</B> A Statement is automatically closed when it is
|
||||
* garbage collected. When a Statement is closed, its current
|
||||
* ResultSet, if one exists, is also closed.
|
||||
*
|
||||
@ -126,7 +122,7 @@ public class Statement implements java.sql.Statement
|
||||
*/
|
||||
public int getMaxRows() throws SQLException
|
||||
{
|
||||
return maxrows;
|
||||
return connection.maxrows;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -138,7 +134,7 @@ public class Statement implements java.sql.Statement
|
||||
*/
|
||||
public void setMaxRows(int max) throws SQLException
|
||||
{
|
||||
maxrows = max;
|
||||
connection.maxrows = max;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -197,10 +193,10 @@ public class Statement implements java.sql.Statement
|
||||
* chain. Subsequent Statement warnings will be chained to this
|
||||
* SQLWarning.
|
||||
*
|
||||
* The Warning chain is automatically cleared each time a statement
|
||||
* <p>The Warning chain is automatically cleared each time a statement
|
||||
* is (re)executed.
|
||||
*
|
||||
* <B>Note:</B> If you are processing a ResultSet then any warnings
|
||||
* <p><B>Note:</B> If you are processing a ResultSet then any warnings
|
||||
* associated with ResultSet reads will be chained on the ResultSet
|
||||
* object.
|
||||
*
|
||||
@ -231,12 +227,12 @@ public class Statement implements java.sql.Statement
|
||||
* doesn't support positioned update/delete, this method is a
|
||||
* no-op.
|
||||
*
|
||||
* <B>Note:</B> By definition, positioned update/delete execution
|
||||
* <p><B>Note:</B> By definition, positioned update/delete execution
|
||||
* must be done by a different Statement than the one which
|
||||
* generated the ResultSet being used for positioning. Also, cursor
|
||||
* names must be unique within a Connection.
|
||||
*
|
||||
* We throw an additional constriction. There can only be one
|
||||
* <p>We throw an additional constriction. There can only be one
|
||||
* cursor active at any one time.
|
||||
*
|
||||
* @param name the new cursor name
|
||||
|
Reference in New Issue
Block a user