From: Oliver Jowett <oliver@opencloud.com>
To: Antony Paul <antonypaul24@hotmail.com>
Cc: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: AutoCommit and SQLException
Date: Mon, 30 Aug 2004 23:31:42 +1200
Message-ID: <4133101E.1090401@opencloud.com> (raw)
In-Reply-To: <BAY15-DAV15d2DpZtYo00029474@hotmail.com>
References: <BAY15-DAV15d2DpZtYo00029474@hotmail.com>
Antony Paul wrote:
> Hi all,
> What happens to transaction when an SQL exception is thrown while it is
> in a transaction. Does the connection automatically rollbacks the
> transactions or we have to roll back it ?
You have to roll it back yourself.
PostgreSQL will generate errors on subsequent queries in a transaction
after an error (until you roll it back), but that's not necessarily true
of other DBs.
-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, antonypaul24@hotmail.com
Subject: Re: AutoCommit and SQLException
In-Reply-To: <4133101E.1090401@opencloud.com>
References: <BAY15-DAV15d2DpZtYo00029474@hotmail.com> <4133101E.1090401@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