Re: AutoCommit and SQLException

Поиск
Список
Период
Сортировка
Искать
От
Oliver Jowett
Тема
Re: AutoCommit and SQLException
Дата
Msg-id
4133101E.1090401@opencloud.com
Ответ на
Список
Дерево обсуждения
AutoCommit and SQLException "Antony Paul" <antonypaul24@hotmail.com>
Re: AutoCommit and SQLException Oliver Jowett <oliver@opencloud.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
В списке pgsql-jdbc по дате отправления
От: Antony Paul
Дата:
Сообщение: AutoCommit and SQLException
От: Antonini Roberto
Дата:
Сообщение: pq_recvbuf
FAQ