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

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Calling Connection.close() in Connection.finalize()
Дата
Msg-id 3D5BDBF3.1050902@xythos.com
обсуждение исходный текст
Ответ на Calling Connection.close() in Connection.finalize()  (Matthias Brunner <mb@blumenstrasse.vol.at>)
Ответы Re: Calling Connection.close() in Connection.finalize()
Список 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 по дате отправления:

Предыдущее
От: Felipe Schnack
Дата:
Сообщение: Re: Calling Connection.close() in Connection.finalize()
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Calling Connection.close() in Connection.finalize()