Re: Re: Memory Leak / Prepared Statement

Поиск
Список
Период
Сортировка
От Gunnar Rønning
Тема Re: Re: Memory Leak / Prepared Statement
Дата
Msg-id m2ofpw1oaa.fsf@smaug.polygnosis.com
обсуждение исходный текст
Ответ на Re: Memory Leak / Prepared Statement  (Barry Lind <barry@xythos.com>)
Список pgsql-jdbc
* Barry Lind <barry@xythos.com> wrote:
|
| example are you always ensuring that you are closing your
| PreparedStatement objects? (ideally in a try/finally block to ensure
| that you don't forget to close them when exceptions are thrown).  I

;-) This is why I usually insist on applying the command pattern. Then
you only have one place to do cleanup(or other exception handling - waiting
for errorcodes...).


--
Gunnar Rønning - gunnar@polygnosis.com
Senior Consultant, Polygnosis AS, http://www.polygnosis.com/

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

Предыдущее
От: John Cook
Дата:
Сообщение: Re: Re: Memory Leak / Prepared Statement
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Patch to improve commit time performance and a few other things