Revision history for DBIx::Class
0.06002
+ - fix to ->search without args to clone rs but maintain cache
- grab $self->dbh once per function in Storage::DBI
- nuke ResultSource caching of ->resultset for consistency reasons
- fix for -and conditions when updating or deleting on a ResultSet
my $rs = (ref $self)->new($self->result_source, $attrs);
- my $rows = $self->get_cache;
- if( @{$rows} ) {
- $rs->set_cache($rows);
+ unless (@_) { # no search, effectively just a clone
+ my $rows = $self->get_cache;
+ if( @{$rows} ) {
+ $rs->set_cache($rows);
+ }
}
return (wantarray ? $rs->all : $rs);