Re: COMMIT after an ERROR?

Поиск
Список
Период
Сортировка
От J C Lawrence
Тема Re: COMMIT after an ERROR?
Дата
Msg-id 18809.1002956641@kanga.nu
обсуждение исходный текст
Ответ на Re: COMMIT after an ERROR?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
On Fri, 12 Oct 2001 11:05:21 -0700 (PDT)
Stephan Szabo <sszabo@megazone23.bigpanda.com> wrote:
> 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?

> The transaction will be forced to roll back.

Thanks.  Is this a PostgresQL specific behaviour, or is it defined
under ANSI?  I've been reading thru the SQL books I have here, and
its pretty ambiguous.

--
J C Lawrence
---------(*)                Satan, oscillate my metallic sonatas.
claw@kanga.nu               He lived as a devil, eh?
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.

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

Предыдущее
От: J C Lawrence
Дата:
Сообщение: Re: COMMIT after an ERROR?
Следующее
От: Allan Engelhardt
Дата:
Сообщение: [Off-topic, Meta-question] Problems with psql-general list