Re: COMMIT after an ERROR?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: COMMIT after an ERROR?
Дата
Msg-id Pine.BSF.4.21.0110121104300.97475-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на COMMIT after an ERROR?  (J C Lawrence <claw@kanga.nu>)
Ответы Re: COMMIT after an ERROR?  (J C Lawrence <claw@kanga.nu>)
Список pgsql-general
On Fri, 12 Oct 2001, J C Lawrence wrote:

>
> Does an error during a transaction invalidate the transaction?
>
> eg
>
>   BEGIN
>   SomeQueryThatSucceeds
>   SomeQueryThatFails
>   SomeOtherQueryThatSucceeds
>   COMMIT
>
> Will the transaction successfully COMMIT, or will the COMMIT fail?
>
> Translation: Do I need to monitor for error conditions during a
> transaction and manually do the ROLLBACK in those cases?

The transaction will be forced to roll back.



В списке pgsql-general по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: ERROR: Unrecognized language specified ...
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: COMMIT after an ERROR?