Re: AutoCommit and SQLException - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: AutoCommit and SQLException
Date
Msg-id 4133101E.1090401@opencloud.com
Whole thread Raw
In response to AutoCommit and SQLException  ("Antony Paul" <antonypaul24@hotmail.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: "Antony Paul"
Date:
Subject: AutoCommit and SQLException
Next
From: Antonini Roberto
Date:
Subject: pq_recvbuf