X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FTxnScopeGuard.pm;h=843ad91f37cf47f67d7744d4e3c95f0622c78ef4;hb=e69b53350cbc835b0de96f0c1f9af4e31ac94fdd;hp=4365b9d9622c4f619e22628541a86dc1f2c43614;hpb=1f870d5a08fa1794734380d7c8bd6753cdcf8f6d;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/TxnScopeGuard.pm b/lib/DBIx/Class/Storage/TxnScopeGuard.pm index 4365b9d..843ad91 100644 --- a/lib/DBIx/Class/Storage/TxnScopeGuard.pm +++ b/lib/DBIx/Class/Storage/TxnScopeGuard.pm @@ -12,14 +12,11 @@ use namespace::clean; # we also need a real appendable, stackable exception object # (coming soon) BEGIN { - if ($] < 5.013001) { - *IS_BROKEN_PERL = sub () { 0 }; - } - elsif ($] < 5.013008) { + if ($] >= 5.013001 and $] <= 5.013007) { *IS_BROKEN_PERL = sub () { 1 }; } else { - die 'The $@ debacle should have been resolved by now, adjust DBIC'; + *IS_BROKEN_PERL = sub () { 0 }; } } @@ -107,7 +104,7 @@ sub DESTROY { return if $dismiss; # if our dbh is not ours anymore, the weakref will go undef - $storage->_preserve_foreign_dbh; + $storage->_verify_pid; return unless $_[0]->[2]; my $exception = $@;