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

From Barry Lind
Subject Re: Calling Connection.close() in Connection.finalize()
Date
Msg-id 3D5BDBF3.1050902@xythos.com
Whole thread Raw
In response to Calling Connection.close() in Connection.finalize()  (Matthias Brunner <mb@blumenstrasse.vol.at>)
Responses Re: Calling Connection.close() in Connection.finalize()  (Matthias Brunner <mb@blumenstrasse.vol.at>)
List pgsql-jdbc
Matthias,

This is implemented and has been since 7.1.

--Barry

Matthias Brunner wrote:

>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!
>
>



pgsql-jdbc by date:

Previous
From: Felipe Schnack
Date:
Subject: Re: Calling Connection.close() in Connection.finalize()
Next
From: Dave Cramer
Date:
Subject: Re: Calling Connection.close() in Connection.finalize()