From: Andy Grundman Date: Tue, 2 Aug 2005 17:48:44 +0000 (+0000) Subject: Removed finish in Cursor::next, not necessary because the sth is already at the end... X-Git-Tag: v0.03001~87 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c23835c4f99d420ea0e1f27bbce7c57684a579ef;p=dbsrgits%2FDBIx-Class.git Removed finish in Cursor::next, not necessary because the sth is already at the end of the rows --- diff --git a/lib/DBIx/Class/Cursor.pm b/lib/DBIx/Class/Cursor.pm index b0565d1..52aa9e8 100644 --- a/lib/DBIx/Class/Cursor.pm +++ b/lib/DBIx/Class/Cursor.pm @@ -47,10 +47,7 @@ sub next { $self->{live_sth} = 1; } my @row = $self->{sth}->fetchrow_array; - unless (@row) { - $self->{sth}->finish if $self->{sth}->{Active}; - return; - } + return unless (@row); $self->{pos}++; return $self->{class}->_row_to_object($self->{cols}, \@row); }