From: Peter Rabbitson Date: Thu, 11 Feb 2010 11:33:03 +0000 (+0000) Subject: Changes and small ommission X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=642299a735823db7faff7182f01eaabc297f3ea0;p=dbsrgits%2FDBIx-Class-Historic.git Changes and small ommission --- diff --git a/Changes b/Changes index efb7481..9e9b10a 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,7 @@ Revision history for DBIx::Class - Add as_subselect_rs to DBIC::ResultSet from DBIC::Helper::ResultSet::VirtualView::as_virtual_view + - Make resultset chaining consistent wrt selection specification 0.08118 2010-02-08 11:53:00 (UTC) - Fix a bug causing UTF8 columns not to be decoded (RT#54395) diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 813ed89..173857c 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -291,14 +291,15 @@ sub search_rs { $rows = $self->get_cache; } + # reset the selector list if (List::Util::first { exists $attrs->{$_} } qw{columns select as}) { - delete @{$our_attrs}{qw{select as columns +select +as +columns}}; + delete @{$our_attrs}{qw{select as columns +select +as +columns include_columns}}; } my $new_attrs = { %{$our_attrs}, %{$attrs} }; # merge new attrs into inherited - foreach my $key (qw/join prefetch +select +as +columns bind/) { + foreach my $key (qw/join prefetch +select +as +columns include_columns bind/) { next unless exists $attrs->{$key}; $new_attrs->{$key} = $self->_merge_attr($our_attrs->{$key}, $attrs->{$key}); }