Fix detection of multiple rows being returned for single(): calling fetchrow_array...
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSet.pm
index 42dade5..bd615d3 100644 (file)
@@ -200,7 +200,7 @@ sub search_rs {
   my $new_attrs = { %{$our_attrs}, %{$attrs} };
 
   # merge new attrs into inherited
-  foreach my $key (qw/join prefetch/) {
+  foreach my $key (qw/join prefetch +select +as/) {
     next unless exists $attrs->{$key};
     $new_attrs->{$key} = $self->_merge_attr($our_attrs->{$key}, $attrs->{$key});
   }