mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Back out Gunnar R|nning jdbc changes.
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user