1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

Wed Jan 31 08:46:00 GMT 2001 peter@retep.org.uk

- Some minor additions to Statement to make our own extensions more
          portable.
        - Statement.close() will now call ResultSet.close() rather than just
          dissasociating with it.
This commit is contained in:
Peter Mount
2001-01-31 09:23:45 +00:00
parent 8439a83d84
commit 234599e943
6 changed files with 80 additions and 6 deletions

View File

@ -22,7 +22,7 @@ import org.postgresql.util.*;
* @see java.sql.Statement
* @see ResultSet
*/
public class Statement implements java.sql.Statement
public class Statement extends org.postgresql.Statement implements java.sql.Statement
{
Connection connection; // The connection who created us
java.sql.ResultSet result = null; // The current results
@ -95,7 +95,13 @@ public class Statement implements java.sql.Statement
*/
public void close() throws SQLException
{
result = null;
// Force the ResultSet to close
java.sql.ResultSet rs = getResultSet();
if(rs!=null)
rs.close();
// Disasociate it from us (For Garbage Collection)
result = null;
}
/**