pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joseph Shraibman <jks@p1.selectacast.net>
To: Peter Mount <petermount@it.maidstone.gov.uk>
Cc: 'Guillaume Rousse' <Guillaume.Rousse@univ-reunion.fr>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: where to close statement ?
Date: Tue, 18 Apr 2000 14:28:16 -0400
Message-ID: <38FCA940.C3D36528@selectacast.net> (raw)
References: <1B3D5E532D18D311861A00600865478C70C4BD@exchange1.nt.maidstone.gov.uk>

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.





view thread (9+ messages)  latest in thread

Message-ID: <38FCA940.C3D36528@selectacast.net>
Permalink:  ../38FCA940.C3D36528@selectacast.net/
Also on:    postgresql.org/message-id/38FCA940.C3D36528@selectacast.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jks@p1.selectacast.net, petermount@it.maidstone.gov.uk, Guillaume.Rousse@univ-reunion.fr
  Subject: Re: where to close statement ?
  In-Reply-To: <38FCA940.C3D36528@selectacast.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox