BMaximus has asked for the wisdom of the Perl Monks concerning the following question:
now since Apache::DBI basically overloads DBI to create a connection pool. Here is the code around line 153 on Apache::DBI.DBD::mysql::db rollback failed: Warning: Some non-transactional chang +ed tables couldn't be rolled back at /usr/lib/perl5/site_perl/5.6.1/A +pache/DBI.pm line 153.
# The PerlCleanupHandler is supposed to initiate a rollback after the +script has finished if AutoCommit is off. # Note: the PerlCleanupHandler runs after the response has been sent t +o the client sub cleanup { my $prefix = "$$ Apache::DBI "; print STDERR "$prefix PerlCleanupHandler \n" if $Apache::DBI::DEBU +G > 1; my $dbh = $Connected{$Idx}; if ($Rollback{$Idx} and $dbh and $dbh->{Active} and !$dbh->{AutoCo +mmit} and eval {$dbh->rollback}) { print STDERR "$prefix PerlCleanupHandler rollback for $Idx \n" + if $Apache::DBI::DEBUG > 1; } delete $Rollback{$Idx}; 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Apache::DBI , Transactions and Warnings ... Oh my!
by lachoy (Parson) on Feb 26, 2002 at 13:39 UTC | |
|
Re: Apache::DBI , Transactions and Warnings ... Oh my!
by perrin (Chancellor) on Feb 26, 2002 at 15:58 UTC | |
|
Re: Apache::DBI , Transactions and Warnings ... Oh my!
by zakzebrowski (Curate) on May 03, 2004 at 13:25 UTC |