Calling Connection.close() in Connection.finalize() - Mailing list pgsql-jdbc

From Matthias Brunner
Subject Calling Connection.close() in Connection.finalize()
Date
Msg-id 200208151829.53715.mb@blumenstrasse.vol.at
Whole thread Raw
Responses Re: Calling Connection.close() in Connection.finalize()  (Felipe Schnack <felipes@ritterdosreis.br>)
List pgsql-jdbc
Hello,

IMHO, it would be useful if Connection.close() was called from
Connection.finalize(), if the connection is still open. Thus the connection
would always be closed properly.
The mysql JDBC driver, for instance, does this.

Or is this already implemented in the current development codebase?


Best regards!
--
Matthias Brunner <mb@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc


pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: Inserting large BLOBs via JDBC - OutOfMemoryError
Next
From: Felipe Schnack
Date:
Subject: Re: Calling Connection.close() in Connection.finalize()