undefined behaviour for sub-transactions?
- From: tyler@xxxxxx (Tyler MacDonald)
- Date: Mon, 14 Nov 2005 19:52:13 -0800
I'm looking through the DBI documentation and I can't find anything about
sub transactions (eg; if you do a "begin_work" ... "commit/rollback" when
begin_work has already been called).
This seems to work under DBD::Pg. Under DBD::mysql, I'm not sure if the
begin_work is just being ignored, or if creating sub-transactions is the
cause of my woes. (see http://rt.cpan.org/NoAuth/Bug.html?id=15803).
I think some pod on the "Transactions" heading of the DBI manpage would be
useful, telling us what to expect (even if it is the unexpected) when we use
sub-transactions under DBI. If this is an engine-specific thing, could DBI
be made to be capable of figuring out whether a particular engine supports
sub-transactions? Then any sub-begin-works could just be ignored, and, say,
attempting to "commit" when a "rollback" has already been called could cause
a fatal error. Or is there already some way to take care of this? There's
very little about transactions in the DBI documentation.
Thanks,
Tyler
.
- Follow-Ups:
- Re: undefined behaviour for sub-transactions?
- From: Paul DuBois
- Re: undefined behaviour for sub-transactions?
- Prev by Date: error installing Bundle::DBD::mysql 3.0002
- Next by Date: Re: undefined behaviour for sub-transactions?
- Previous by thread: error installing Bundle::DBD::mysql 3.0002
- Next by thread: Re: undefined behaviour for sub-transactions?
- Index(es):
Relevant Pages
|
|