diff options
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java')
| -rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java b/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java index dfba5c14de..43e5d38143 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java @@ -6,7 +6,6 @@ package org.postgresql.jdbc1; // org.postgresql.jdbc2 package. import java.sql.*; -import org.postgresql.PGStatement; import org.postgresql.util.PSQLException; @@ -23,8 +22,9 @@ import org.postgresql.util.PSQLException; * @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) @@ -38,7 +38,7 @@ public class Statement extends PGStatement implements java.sql.Statement */ public Statement (Connection c) { - super(c); + connection = c; } /** @@ -89,8 +89,7 @@ public class Statement extends PGStatement implements java.sql.Statement */ public void close() throws SQLException { - super.close(); - result = null; + result = null; } /** @@ -267,8 +266,7 @@ public class Statement extends PGStatement implements java.sql.Statement */ public boolean execute(String sql) throws SQLException { - deallocate(); - result = connection.ExecSQL(this, sql); + result = connection.ExecSQL(sql); return (result != null && ((org.postgresql.ResultSet)result).reallyResultSet()); } |
