From: Oliver Jowett <oliver@opencloud.com>
To: babu_moshay <babu_moshay@indiatimes.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: 25P02, current transaction is aborted, commands ignored
Date: Sun, 02 Apr 2006 18:41:50 +1200
Message-ID: <442F722E.1090900@opencloud.com> (raw)
In-Reply-To: <200604020407.JAA21169@WS0005.indiatimes.com>
References: <200604020407.JAA21169@WS0005.indiatimes.com>
babu_moshay wrote:
> In my opinion, if there are reasons to throw 25P02 and abort transaction unilaterally, then there are also good reasons not to abort it and let programmer take the decision. A switching mechanism would have been ideal.
Create a savepoint before the possibly-failing query. If the query fails
in the way you were expecting, roll back to the savepoint and continue.
-O
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, babu_moshay@indiatimes.com
Subject: Re: 25P02, current transaction is aborted, commands ignored
In-Reply-To: <442F722E.1090900@opencloud.com>
References: <200604020407.JAA21169@WS0005.indiatimes.com> <442F722E.1090900@opencloud.com>
* 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