X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FCursor.pm;h=361b1295373727189820d303ce0111b51a564230;hb=71e65b395be8133d54b110a499f9e9619111c1f6;hp=41b3da549da62d166ad36a0291c2933df6f5eb97;hpb=1f23a8774ca0b1a210e4c94f4a0d494bd5bc1f07;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Cursor.pm b/lib/DBIx/Class/Storage/DBI/Cursor.pm index 41b3da5..361b129 100644 --- a/lib/DBIx/Class/Storage/DBI/Cursor.pm +++ b/lib/DBIx/Class/Storage/DBI/Cursor.pm @@ -20,6 +20,7 @@ sub new { sub next { my ($self) = @_; if ($self->{attrs}{rows} && $self->{pos} >= $self->{attrs}{rows}) { + $self->{sth}->finish if $self->{sth}->{Active}; delete $self->{sth}; $self->{done} = 1; }