From ba977c086c01726affcc96219a79584a11ccc78e Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sun, 11 Jan 1998 21:14:56 +0000 Subject: Peter's Mega-Patch for JDBC... see README_6.3 for list of changes --- src/interfaces/jdbc/postgresql/Statement.java | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/interfaces/jdbc/postgresql/Statement.java') diff --git a/src/interfaces/jdbc/postgresql/Statement.java b/src/interfaces/jdbc/postgresql/Statement.java index 464a263621f..177b8189f6c 100644 --- a/src/interfaces/jdbc/postgresql/Statement.java +++ b/src/interfaces/jdbc/postgresql/Statement.java @@ -3,13 +3,10 @@ package postgresql; import java.sql.*; /** - * @version 1.0 15-APR-1997 - * @author Adrian Hall - * * 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. + *

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. * - * Note: A Statement is automatically closed when it is + *

Note: 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 + *

The Warning chain is automatically cleared each time a statement * is (re)executed. * - * Note: If you are processing a ResultSet then any warnings + *

Note: 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. * - * Note: By definition, positioned update/delete execution + *

Note: 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 + *

We throw an additional constriction. There can only be one * cursor active at any one time. * * @param name the new cursor name -- cgit v1.2.3