[Bast-commits] r8614 -
DBIx-Class/0.08/branches/chaining_fixes/lib/DBIx/Class
frew at dev.catalyst.perl.org
frew at dev.catalyst.perl.org
Thu Feb 11 10:21:52 GMT 2010
Author: frew
Date: 2010-02-11 10:21:52 +0000 (Thu, 11 Feb 2010)
New Revision: 8614
Modified:
DBIx-Class/0.08/branches/chaining_fixes/lib/DBIx/Class/ResultSet.pm
Log:
fix t/76, break rsc tests
Modified: DBIx-Class/0.08/branches/chaining_fixes/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/branches/chaining_fixes/lib/DBIx/Class/ResultSet.pm 2010-02-11 10:16:30 UTC (rev 8613)
+++ DBIx-Class/0.08/branches/chaining_fixes/lib/DBIx/Class/ResultSet.pm 2010-02-11 10:21:52 UTC (rev 8614)
@@ -294,15 +294,10 @@
my $new_attrs = { %{$our_attrs}, %{$attrs} };
# merge new attrs into inherited
- foreach my $key (qw/join prefetch +select +as bind/) {
+ foreach my $key (qw/join prefetch +select +as +columns bind/) {
next unless exists $attrs->{$key};
$new_attrs->{$key} = $self->_merge_attr($our_attrs->{$key}, $attrs->{$key});
}
-
- if (List::Util::first { exists $new_attrs->{$_} } qw{select as columns}) {
- delete $new_attrs->{$_} for (qw{+select +as +columns});
- }
-
my $cond = (@_
? (
(@_ == 1 || ref $_[0] eq "HASH")
@@ -2795,12 +2790,12 @@
push @{ $attrs->{select} }, map values %{$_}, @colbits;
push @{ $attrs->{as} }, map keys %{$_}, @colbits;
- if ( my $adds = delete $attrs->{'+select'} ) {
+ if ( my $adds = $attrs->{'+select'} ) {
$adds = [$adds] unless ref $adds eq 'ARRAY';
push @{ $attrs->{select} },
map { /\./ || ref $_ ? $_ : "$alias.$_" } @$adds;
}
- if ( my $adds = delete $attrs->{'+as'} ) {
+ if ( my $adds = $attrs->{'+as'} ) {
$adds = [$adds] unless ref $adds eq 'ARRAY';
push @{ $attrs->{as} }, @$adds;
}
More information about the Bast-commits
mailing list