Calling Connection.close() in Connection.finalize()

From: Matthias Brunner <mb(at)blumenstrasse(dot)vol(dot)at>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Calling Connection.close() in Connection.finalize()
Date: 2002-08-15 16:29:53
Message-ID: 200208151829.53715.mb@blumenstrasse.vol.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)blumenstrasse(dot)vol(dot)at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Felipe Schnack 2002-08-15 16:39:45 Re: Calling Connection.close() in Connection.finalize()
Previous Message Barry Lind 2002-08-15 15:54:49 Re: Inserting large BLOBs via JDBC - OutOfMemoryError