projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add an as selector to a prefetch subquery to aid the subselecting-limit analyzer
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Storage
/
DBIHacks.pm
diff --git
a/lib/DBIx/Class/Storage/DBIHacks.pm
b/lib/DBIx/Class/Storage/DBIHacks.pm
index
32e0ea3
..
f16c935
100644
(file)
--- 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