aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/join_sql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/visitors/join_sql.rb')
-rw-r--r--lib/arel/visitors/join_sql.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/arel/visitors/join_sql.rb b/lib/arel/visitors/join_sql.rb
index 427f2bb726..8c31934cd0 100644
--- a/lib/arel/visitors/join_sql.rb
+++ b/lib/arel/visitors/join_sql.rb
@@ -12,8 +12,7 @@ module Arel
private
def visit_Arel_Nodes_SelectCore o
- return '' unless Nodes::Join === o.from
- visit o.from
+ o.source.right.map { |j| visit j }.join ' '
end
def visit_Arel_Nodes_StringJoin o
@@ -22,20 +21,6 @@ module Arel
visit(o.right)
].compact.join ' '
end
-
- def visit_Arel_Nodes_OuterJoin o
- [
- (visit o.left if Nodes::Join === o.left),
- "LEFT OUTER JOIN #{visit o.right} #{visit o.constraint if o.constraint}"
- ].compact.join ' '
- end
-
- def visit_Arel_Nodes_InnerJoin o
- [
- (visit o.left if Nodes::Join === o.left),
- "INNER JOIN #{visit o.right} #{visit o.constraint if o.constraint}"
- ].compact.join ' '
- end
end
end
end