diff options
author | Peter Mount | 1999-09-14 05:50:44 +0000 |
---|---|---|
committer | Peter Mount | 1999-09-14 05:50:44 +0000 |
commit | 24c82830cf8e7cc6d378c622ef1028937a4ee488 (patch) | |
tree | 7850bdf877e854d555422f705cc42830ddba9611 /src/interfaces/jdbc/postgresql/Connection.java | |
parent | 4197aaa8ae50410cce73fef871b6c5740b705f0c (diff) |
Patches for 6.5.2
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Connection.java')
-rw-r--r-- | src/interfaces/jdbc/postgresql/Connection.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/postgresql/Connection.java b/src/interfaces/jdbc/postgresql/Connection.java index fc30b4dfd6c..5433e336c7b 100644 --- a/src/interfaces/jdbc/postgresql/Connection.java +++ b/src/interfaces/jdbc/postgresql/Connection.java @@ -10,7 +10,7 @@ import postgresql.largeobject.*; import postgresql.util.*; /** - * $Id: Connection.java,v 1.17 1999/05/18 23:17:15 peter Exp $ + * $Id: Connection.java,v 1.18 1999/09/14 05:50:33 peter Exp $ * * This abstract class is used by postgresql.Driver to open either the JDBC1 or * JDBC2 versions of the Connection class. @@ -692,4 +692,17 @@ public abstract class Connection * version (from jdbc1 or jdbc2) are returned. */ protected abstract java.sql.ResultSet getResultSet(postgresql.Connection conn, Field[] fields, Vector tuples, String status, int updateCount) throws SQLException; + + /** + * Overides finalize(). If called, it closes the connection. + * + * This was done at the request of Rachel Greenham + * <[email protected]> who hit a problem where multiple + * clients didn't close the connection, and once a fortnight enough + * clients were open to kill the postgres server. + */ + public void finalize() throws Throwable + { + close(); + } } |