lib/upsert/connection/postgresql.rb in upsert-1.1.5 vs lib/upsert/connection/postgresql.rb in upsert-1.1.6
- old
+ new
@@ -4,10 +4,10 @@
module Postgresql
def bind_value(v)
case v
when Hash
# you must require 'pg_hstore' from the 'pg-hstore' gem yourself
- ::PgHstore.dump(v)[1...-1]
+ ::PgHstore.dump v, true
else
super
end
end
end