Skip to content

Commit 32a513b

Browse files
committed
Add missing space separator when there are multiple JOINS
1 parent d35672e commit 32a513b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

activerecord/lib/arel/visitors/postgresql.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def visit_Arel_Nodes_UpdateStatement(o, collector)
3535
collector << " "
3636
remaining_joins.each do |join|
3737
visit join, collector
38+
collector << " "
3839
end
3940
end
4041

activerecord/lib/arel/visitors/sqlite.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def visit_Arel_Nodes_UpdateStatement(o, collector)
3636
collector << " "
3737
remaining_joins.each do |join|
3838
visit join, collector
39+
collector << " "
3940
end
4041
end
4142

0 commit comments

Comments
 (0)