[Bast-commits] r3279 - branches/DBIx-Class-current/lib/DBIx/Class/Storage

blblack at dev.catalyst.perl.org blblack at dev.catalyst.perl.org
Thu May 10 22:11:09 GMT 2007


Author: blblack
Date: 2007-05-10 22:11:04 +0100 (Thu, 10 May 2007)
New Revision: 3279

Modified:
   branches/DBIx-Class-current/lib/DBIx/Class/Storage/DBI.pm
Log:
do not try to silently handle disconnects when in a manual txn_begin/txn_end transaction

Modified: branches/DBIx-Class-current/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- branches/DBIx-Class-current/lib/DBIx/Class/Storage/DBI.pm	2007-05-10 16:34:50 UTC (rev 3278)
+++ branches/DBIx-Class-current/lib/DBIx/Class/Storage/DBI.pm	2007-05-10 21:11:04 UTC (rev 3279)
@@ -506,7 +506,9 @@
   ref $coderef eq 'CODE' or $self->throw_exception
     ('$coderef must be a CODE reference');
 
-  return $coderef->($self, $self->_dbh, @_) if $self->{_in_dbh_do};
+  return $coderef->($self, $self->_dbh, @_) if $self->{_in_dbh_do}
+      || $self->{transaction_depth};
+
   local $self->{_in_dbh_do} = 1;
 
   my @result;




More information about the Bast-commits mailing list