summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java')
-rw-r--r--src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java b/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java
index 1da970fa88..8b6ca9a298 100644
--- a/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java
+++ b/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java
@@ -8,6 +8,7 @@ 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
@@ -22,9 +23,8 @@ import org.postgresql.util.*;
* @see java.sql.Statement
* @see ResultSet
*/
-public class Statement implements java.sql.Statement
+public class Statement extends PGStatement 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 implements java.sql.Statement
*/
public Statement (Connection c)
{
- connection = c;
+ super(c);
}
/**
@@ -90,7 +90,8 @@ public class Statement implements java.sql.Statement
*/
public void close() throws SQLException
{
- result = null;
+ super.close();
+ result = null;
}
/**
@@ -269,8 +270,8 @@ public class Statement implements java.sql.Statement
{
if(escapeProcessing)
sql=connection.EscapeSQL(sql);
-
- result = connection.ExecSQL(sql);
+ deallocate();
+ result = connection.ExecSQL(this, sql);
return (result != null && ((org.postgresql.ResultSet)result).reallyResultSet());
}