lib/upsert/connection/postgresql.rb in upsert-2.0.0 vs lib/upsert/connection/postgresql.rb in upsert-2.0.1

- old
+ new

@@ -5,10 +5,10 @@ def bind_value(v) case v when Array # pg array escaping lifted from https://github.com/tlconnor/activerecord-postgres-array/blob/master/lib/activerecord-postgres-array/array.rb '{' + v.map do |vv| - vv = vv.to_s + vv = vv.to_s.dup vv.gsub! /\\/, '\&\&' vv.gsub! /'/, "''" vv.gsub! /"/, '\"' %{"#{vv}"} end.join(',') + '}'