Re: COMMIT after an ERROR? - Mailing list pgsql-general

From J C Lawrence
Subject Re: COMMIT after an ERROR?
Date
Msg-id 18809.1002956641@kanga.nu
Whole thread Raw
In response to Re: COMMIT after an ERROR?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List 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 by date:

Previous
From: J C Lawrence
Date:
Subject: Re: COMMIT after an ERROR?
Next
From: Allan Engelhardt
Date:
Subject: [Off-topic, Meta-question] Problems with psql-general list