Re: Re: Memory Leak / Prepared Statement

From: Gunnar Rønning <gunnar(at)polygnosis(dot)com>
To: Barry Lind <barry(at)xythos(dot)com>
Cc: John Cook <johncook(at)interport(dot)net>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Re: Memory Leak / Prepared Statement
Date: 2001-08-04 03:45:17
Message-ID: m2ofpw1oaa.fsf@smaug.polygnosis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

* Barry Lind <barry(at)xythos(dot)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(at)polygnosis(dot)com
Senior Consultant, Polygnosis AS, http://www.polygnosis.com/

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-08-04 19:31:48 Re: Patch to improve commit time performance and a few other things
Previous Message John Cook 2001-08-03 23:32:42 Re: Re: Memory Leak / Prepared Statement