This commit is contained in:
Paul Eipper 2017-04-18 01:49:20 +00:00 committed by GitHub
commit 09e0d65fd5

View File

@ -820,7 +820,8 @@ class HstoreAdapter(object):
k = _ext.adapt(self.wrapped.keys())
k.prepare(self.conn)
v = _ext.adapt(self.wrapped.values())
values = [str(v) for v in self.wrapped.values()]
v = _ext.adapt(values)
v.prepare(self.conn)
return b"hstore(" + k.getquoted() + b", " + v.getquoted() + b")"