Skip to content

Commit 0f76d92

Browse files
committed
Fix concatenate syntax
1 parent 1057a81 commit 0f76d92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/arel/visitors/sqlserver.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ def visit_Arel_Nodes_Bin o, collector
2222
collector << " #{ActiveRecord::ConnectionAdapters::SQLServerAdapter.cs_equality_operator} "
2323
end
2424

25+
def visit_Arel_Nodes_Concat(o, collector)
26+
visit o.left, collector
27+
collector << " + "
28+
visit o.right, collector
29+
end
30+
2531
def visit_Arel_Nodes_UpdateStatement(o, a)
2632
if o.orders.any? && o.limit.nil?
2733
o.limit = Nodes::Limit.new(9_223_372_036_854_775_807)

0 commit comments

Comments
 (0)