Re: closing statements when connection is closed

Поиск
Список
Период
Сортировка
От David Wall
Тема Re: closing statements when connection is closed
Дата
Msg-id 000b01c3ef8d$32b2c630$3201a8c0@rasta
обсуждение исходный текст
Ответ на closing statements when connection is closed  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
> It would appear from the documentation that we are supposed to clean up
> JDBC resources when Connecton.close is called, would this include
> statements. We currently don't track them or clean them up?
>
> Opinions ?

Well, closing a Statement/PreparedStatement should definitely close any open
ResultSet objects.  Closing a Connection should likely close any open
Statements/ResultSets, but that's not been an issue for us since we don't
really close our connections (they are returned to a pool instead).

David


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: closing statements when connection is closed
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: closing statements when connection is closed