make multi-return actually work
Matt S Trout [Mon, 13 Nov 2006 03:30:19 +0000 (03:30 +0000)]
lib/DBIx/Class/ResultSet.pm

index 32b42b5..61764b8 100644 (file)
@@ -724,6 +724,7 @@ sub next {
   if ($self->{stashed_objects}) {
     my $obj = shift(@{$self->{stashed_objects}});
     delete $self->{stashed_objects} unless @{$self->{stashed_objects}};
+    return $obj;
   }
   my @row = (
     exists $self->{stashed_row}