提交 796c0fc1 编写于 作者: A Aaron Patterson

pass the outer joins to join_constraints

上级 d059fa6f
......@@ -84,7 +84,8 @@ def apply_tables!(node)
node.children.each { |child| construct_tables! node, child }
end
def join_constraints
def join_constraints(outer_joins)
outer_joins.each { |oj| merge_outer_joins! oj }
make_joins join_root
end
......
......@@ -950,11 +950,7 @@ def build_joins(manager, joins)
join_list
)
stashed_association_joins.each do |dep|
join_dependency.merge_outer_joins! dep
end
joins = join_dependency.join_constraints
joins = join_dependency.join_constraints stashed_association_joins
joins.each { |join| manager.from(join) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册