Skip to content

Commit

Permalink
Explicitly join the array to format for the query
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarver committed Dec 28, 2011
1 parent 2200fb8 commit a1690ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/orel/table.rb
Expand Up @@ -184,7 +184,7 @@ def upsert_statement(options)
when :increment
values.map { |v| "#{v}=#{v}+VALUES(#{v})" }.join(',')
when :replace
values.map { |v| "#{v}=VALUES(#{v})" }
values.map { |v| "#{v}=VALUES(#{v})" }.join(' ')
else
raise ArgumentError, "Unknown value for :with - #{with.inspect}"
end
Expand Down

0 comments on commit a1690ec

Please sign in to comment.