Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fcd34f9

Browse files
author
Dave Cramer
committed
patch from Thomas O'Dowd to ensure that connections are closed
1 parent 422c2e3 commit fcd34f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import org.postgresql.util.*;
1414

1515

16-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.5 2002/08/23 20:45:49 barry Exp $
16+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.6 2002/09/01 23:56:13 davec Exp $
1717
* This class defines methods of the jdbc1 specification. This class is
1818
* extended by org.postgresql.jdbc2.AbstractJdbc2Connection which adds the jdbc2
1919
* methods. The real Connection class (for jdbc1) is org.postgresql.jdbc1.Jdbc1Connection
@@ -776,7 +776,10 @@ public void close() throws SQLException
776776
}
777777
catch (IOException e)
778778
{}
779-
pg_stream = null;
779+
finally
780+
{
781+
pg_stream = null;
782+
}
780783
}
781784
}
782785

0 commit comments

Comments
 (0)