From: Norbert Buchmuller Date: Sat, 15 Nov 2008 03:48:51 +0000 (+0100) Subject: * Fixed a bug: did not create the underlying resultset if neither ->next or ->reset... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3484603a5f50f61c22a426cdb3b2abc551716ad6;p=dbsrgits%2FDBIx-Class-Historic.git * Fixed a bug: did not create the underlying resultset if neither ->next or ->reset is called before ->first was called. --- diff --git a/lib/DBIx/Class/ResultSetColumn.pm b/lib/DBIx/Class/ResultSetColumn.pm index 3585d17..5a5f26d 100644 --- a/lib/DBIx/Class/ResultSetColumn.pm +++ b/lib/DBIx/Class/ResultSetColumn.pm @@ -137,7 +137,7 @@ Much like L 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; }