Re: where to close statement ? - Mailing list pgsql-interfaces

From Joseph Shraibman
Subject Re: where to close statement ?
Date
Msg-id 38FCA940.C3D36528@selectacast.net
Whole thread Raw
In response to RE: where to close statement ?  (Peter Mount <petermount@it.maidstone.gov.uk>)
Responses Re: where to close statement ?  (Guillaume Rousse <Guillaume.Rousse@univ-reunion.fr>)
List 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.




pgsql-interfaces by date:

Previous
From: Guillaume Rousse
Date:
Subject: Re: psql & java
Next
From: Guillaume Rousse
Date:
Subject: Re: where to close statement ?