1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +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

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