From: Peter Rabbitson Date: Mon, 3 May 2010 16:33:14 +0000 (+0000) Subject: Add an as selector to a prefetch subquery to aid the subselecting-limit analyzer X-Git-Tag: v0.08122~86^2~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb9bffea97bc87f8145e389336a60458130252e4;p=dbsrgits%2FDBIx-Class.git Add an as selector to a prefetch subquery to aid the subselecting-limit analyzer --- 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