1
0
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:
Bruce Momjian
2000-10-09 16:48:19 +00:00
parent c4ccc6146b
commit a4e3943b3f
13 changed files with 84 additions and 412 deletions

View File

@ -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());
}