Re: where to close statement ?

From: Joseph Shraibman <jks(at)p1(dot)selectacast(dot)net>
To: Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>
Cc: "'Guillaume Rousse'" <Guillaume(dot)Rousse(at)univ-reunion(dot)fr>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: where to close statement ?
Date: 2000-04-18 18:28:16
Message-ID: 38FCA940.C3D36528@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Peter Mount wrote:

> Ah, forgot that bit. I put them under finally as it always gets run,
> although you have to wrap them in a try{} win finally if the parent
> method doesn't throw SQLException.
>
> Peter
>

The problem with that is that close() itself can throw a SQLException so
you have to wrap it twice.

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Guillaume Rousse 2000-04-18 18:40:00 Re: where to close statement ?
Previous Message Guillaume Rousse 2000-04-18 17:46:48 Re: psql & java