From: Peter Rabbitson Date: Tue, 26 Oct 2010 12:12:06 +0000 (+0200) Subject: $sth->{Active} may throw during destruction >.< X-Git-Tag: v0.08124~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=380b6ea1587b75b618c597feb277297afbc3bacf $sth->{Active} may throw during destruction >.< --- diff --git a/lib/DBIx/Class/Storage/DBI/Cursor.pm b/lib/DBIx/Class/Storage/DBI/Cursor.pm index 75b1136..eee5cbb 100644 --- a/lib/DBIx/Class/Storage/DBI/Cursor.pm +++ b/lib/DBIx/Class/Storage/DBI/Cursor.pm @@ -179,7 +179,7 @@ sub _check_dbh_gen { sub DESTROY { # None of the reasons this would die matter if we're in DESTROY anyways if (my $sth = $_[0]->sth) { - try { $sth->finish } if $sth->{Active}; + try { $sth->finish } if $sth->FETCH('Active'); } }