X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBIHacks.pm;h=f16c9355a2dac8be1c6ca9ba5e2e123bf8e48f38;hb=bb9bffea97bc87f8145e389336a60458130252e4;hp=32e0ea30e831d1a82388070847de8d6be65733f8;hpb=aca481d85207323845bc076e58d5de52f3a8458f;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBIHacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm index 32e0ea3..f16c935 100644 --- a/lib/DBIx/Class/Storage/DBIHacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -94,6 +94,8 @@ sub _adjust_select_args_for_complex_prefetch { } push @$inner_select, $sel; + + push @{$inner_attrs->{as}}, $attrs->{as}[$i]; } # construct the inner $from for the subquery