Thread: Nested BEGIN...COMMIT transactions

Nested BEGIN...COMMIT transactions

From
mpg4@duluoz.net
Date:
All-
  What's the behavior of nested sets of BEGIN ... COMMIT blocks?  I'd
like to call some scripts containing their own their own transaction
blocks inside of of other scripts that have their own transaction
blocks.  Are the blocks nested, or will one COMMIT or ROLLBACK affect
all of my BEGIN's simultaneously?

-mike


-- 
  I never thought it would end like this,  dumped because I've got no tits.  -- Reel Big Fish, "She Has a Girlfriend
Now"

GnuPG key available at http://devel.duluoz.net/pubkey.asc
Key ID = 1024D/9A256AE5 1999-11-13 Mike Glover <mpg4@duluoz.net>
Key fingerprint = EF6E 8BCB 4810 E98C F0FD  4596 367A 32B7 9A25 6AE5



Re: [SQL] Nested BEGIN...COMMIT transactions

From
Peter Eisentraut
Date:
mpg4@duluoz.net writes:

> What's the behavior of nested sets of BEGIN ... COMMIT blocks? 

You can't nest them. (Second BEGIN will fail.)


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden