Revision history for DBIx::Class
+ - Change ResultSetColumn->reset() to no longer return $self, which
+ fixes an issue with using Cursor::Cached and ResultSetColumn
+ together.
+
0.08111 2009-09-06 21:58:00 (UTC)
- The hashref to connection_info now accepts a 'dbh_maker'
coderef, allowing better intergration with Catalyst
sub reset {
my $self = shift;
$self->_resultset->cursor->reset;
- return $self;
+ return undef;
}
=head2 first
sub first {
my $self = shift;
- my ($row) = $self->_resultset->cursor->reset->next;
+ $self->_resultset->reset();
+ my ($row) = $self->_resultset->cursor->next;
return $row;
}
my $schema = DBICTest->init_schema();
-plan tests => 20;
+plan tests => 21;
my $rs = $schema->resultset("CD")->search({}, { order_by => 'cdid' });
cmp_ok($rs_year->sum, '==', 9996, "three artists returned");
-$rs_year->reset;
+my $reset_ret = $rs_year->reset;
is($rs_year->next, 1999, "reset okay");
+is($reset_ret, undef, 'reset returns undef');
is($rs_year->first, 1999, "first okay");