transactions within transactions.

2 views
Skip to first unread message

SamDonaldson

unread,
Jun 25, 2007, 8:07:38 PM6/25/07
to TurboGears
Hello,

I have a question on transaction blocks within transactions. Does the
parent transaction just inherit all the embedded transactions in it or
are they treated separately? In other words, can an inner trnasaction
block get committed bofore we call the outside block's commit?

Thanks.

Diez B. Roggisch

unread,
Jun 26, 2007, 7:31:36 AM6/26/07
to turbo...@googlegroups.com, SamDonaldson

If your DB actually supports nested transactions they will always be nested -
that is if transaction B is inside transaction A, and you rollback A, B will
be rolled back as well. Which is the sole purpose behind nested transactions.

Diez

SamDonaldson

unread,
Jun 28, 2007, 8:26:20 AM6/28/07
to TurboGears
My question actually has to do with Turbogears transactions. The ones
you can declare off the session? What happens when you define these
in a nested way?

Thanks,

Sam.

On Jun 26, 4:31 am, "Diez B. Roggisch" <diez.roggi...@artnology.com>
wrote:

Diez B. Roggisch

unread,
Jun 28, 2007, 9:39:57 AM6/28/07
to turbo...@googlegroups.com
SamDonaldson schrieb:

> My question actually has to do with Turbogears transactions. The ones
> you can declare off the session? What happens when you define these
> in a nested way?

The same thing. Nested transactions is something a database has to
support. The TG API just calls the sql-api's functions, and that's it.

diez

Reply all
Reply to author
Forward
0 new messages