提交 a84c34fa 编写于 作者: A Aaron Patterson

refactor SelectManager to use the create_join factory method

上级 30a0a9c2
......@@ -89,10 +89,10 @@ def join relation, klass = Nodes::InnerJoin
case relation
when String, Nodes::SqlLiteral
raise if relation.blank?
from Nodes::StringJoin.new(@ctx.froms, relation)
else
from klass.new(@ctx.froms, relation, nil)
klass = Nodes::StringJoin
end
from create_join(@ctx.froms, relation, nil, klass)
end
def having expr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册