* Fixed a bug: did not create the underlying resultset if neither ->next or ->reset...
Norbert Buchmuller [Sat, 15 Nov 2008 03:48:51 +0000 (04:48 +0100)]
lib/DBIx/Class/ResultSetColumn.pm

index 3585d17..5a5f26d 100644 (file)
@@ -137,7 +137,7 @@ Much like L<DBIx::Class::ResultSet/first> but just returning the one value.
 
 sub first {
   my $self = shift;
-  my ($row) = $self->{_resultset}->cursor->reset->next;
+  my ($row) = $self->_resultset->cursor->reset->next;
   return $row;
 }