X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FCursor.pm;h=770608c25f0d10bafec77f24ea0df04467429417;hb=7eb4ecc8fc02a8b99fbe8be59b03321dd773ab9a;hp=1f277e26c2cde5d9d7b3483410ad346eaf44b8ae;hpb=8e23eaf20446bb9c6cabbc772b4cbe879de5766c;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/DBI/Cursor.pm b/lib/DBIx/Class/Storage/DBI/Cursor.pm index 1f277e2..770608c 100644 --- a/lib/DBIx/Class/Storage/DBI/Cursor.pm +++ b/lib/DBIx/Class/Storage/DBI/Cursor.pm @@ -30,8 +30,6 @@ information. =head2 new -=back - Returns a new L object. =cut @@ -55,9 +53,15 @@ sub new { =head2 next +=over 4 + +=item Arguments: none + +=item Return Value: \@row_columns + =back -Advances the cursor to the next row and returns it. +Advances the cursor to the next row and returns an arrayref of column values. =cut @@ -91,9 +95,16 @@ sub next { =head2 all +=over 4 + +=item Arguments: none + +=item Return Value: \@row_columns+ + =back -Returns all rows in the L. +Returns a list of arrayrefs of column values for all rows in the +L. =cut @@ -110,8 +121,6 @@ sub all { =head2 reset -=back - Resets the cursor to the beginning of the L. =cut @@ -151,7 +160,7 @@ sub DESTROY { my ($self) = @_; $self->_check_forks_threads; - $self->{sth}->finish if $self->{sth}->{Active}; + $self->{sth}->finish if $self->{sth} && $self->{sth}->{Active}; } 1;