undefined behaviour for sub-transactions?



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

.



Relevant Pages

  • Re: undefined behaviour for sub-transactions?
    ... MySQL doesn't have sub-transactions. ... > I think some pod on the "Transactions" heading of the DBI manpage would be ... > very little about transactions in the DBI documentation. ...
    (perl.dbi.users)
  • Re: Trapping errors
    ... but currently do not utilize transactions in our coding. ... then log the DBI error on the server for review. ... > DBI perldocs suggest ...
    (perl.dbi.users)
  • Re: Transaction Errors
    ... I didn't realize that the DBI version was so ... >>I keep getting this error when attempting to utilize a database that has Innodb ... >>Transactions not supported by database at module..... ... >>until the commit is called, of if an error occurs, the rollback is called. ...
    (perl.dbi.users)
  • Re: Trapping errors
    ... > but currently do not utilize transactions in our coding. ... Hardy Merrill ... then log the DBI error on the server for review. ...
    (perl.dbi.users)
  • Re: Cant connect to mySQL
    ... obvious things check out (DB engine is running) then I'd suspect that ... the configured socket #'s are incorrect. ... > I am new to DBI and appreciate your support. ...
    (perl.dbi.users)