projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
cf48da0
)
$sth->{Active} may throw during destruction >.<
Peter Rabbitson [Tue, 26 Oct 2010 12:12:06 +0000 (14:12 +0200)]
lib/DBIx/Class/Storage/DBI/Cursor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI/Cursor.pm
b/lib/DBIx/Class/Storage/DBI/Cursor.pm
index
75b1136
..
eee5cbb
100644
(file)
--- 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');
}
}