Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid extra string objects in the inner join case

  • Loading branch information...
commit 890eaf4784fb6b4ee9e1a8f167f6a9b28525722e 1 parent 9367992
Aaron Patterson tenderlove authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/arel/visitors/to_sql.rb
7 lib/arel/visitors/to_sql.rb
View
@@ -455,7 +455,12 @@ def visit_Arel_Nodes_OuterJoin o
end
def visit_Arel_Nodes_InnerJoin o
- "INNER JOIN #{visit o.left} #{visit o.right if o.right}"
+ s = "INNER JOIN #{visit o.left}"
+ if o.right
+ s << SPACE
+ s << visit(o.right)
+ end
+ s
end
def visit_Arel_Nodes_On o
Please sign in to comment.
Something went wrong with that request. Please try again.