diff options
| author | Bruce Momjian <bruce@momjian.us> | 2000-10-09 16:48:19 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2000-10-09 16:48:19 +0000 |
| commit | a4e3943b3fe6b4fdbca58d5fb41bbafd22a92c15 (patch) | |
| tree | 8cbafa34e4105e182bc203530d29c965af327ce0 /src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java | |
| parent | c4ccc6146bfe2d20140da2e388e0d62b41c96f9b (diff) | |
| download | postgresql-a4e3943b3fe6b4fdbca58d5fb41bbafd22a92c15.tar.gz | |
Back out Gunnar R|nning jdbc changes.
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java')
| -rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java b/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java index 8b6ca9a298..1da970fa88 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java @@ -8,7 +8,6 @@ package org.postgresql.jdbc2; import java.sql.*; import java.util.Vector; import org.postgresql.util.*; -import org.postgresql.PGStatement; /** * A Statement object is used for executing a static SQL statement and @@ -23,8 +22,9 @@ import org.postgresql.PGStatement; * @see java.sql.Statement * @see ResultSet */ -public class Statement extends PGStatement implements java.sql.Statement +public class Statement implements java.sql.Statement { + Connection connection; // The connection who created us java.sql.ResultSet result = null; // The current results SQLWarning warnings = null; // The warnings chain. int timeout = 0; // The timeout for a query (not used) @@ -39,7 +39,7 @@ public class Statement extends PGStatement implements java.sql.Statement */ public Statement (Connection c) { - super(c); + connection = c; } /** @@ -90,8 +90,7 @@ public class Statement extends PGStatement implements java.sql.Statement */ public void close() throws SQLException { - super.close(); - result = null; + result = null; } /** @@ -270,8 +269,8 @@ public class Statement extends PGStatement implements java.sql.Statement { if(escapeProcessing) sql=connection.EscapeSQL(sql); - deallocate(); - result = connection.ExecSQL(this, sql); + + result = connection.ExecSQL(sql); return (result != null && ((org.postgresql.ResultSet)result).reallyResultSet()); } |
