mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-04 20:30:09 +03:00
Merge 82ab0cde55
into 4b4d2796b7
This commit is contained in:
commit
825120fdda
|
@ -820,7 +820,7 @@ class HstoreAdapter(object):
|
||||||
|
|
||||||
k = _ext.adapt(self.wrapped.keys())
|
k = _ext.adapt(self.wrapped.keys())
|
||||||
k.prepare(self.conn)
|
k.prepare(self.conn)
|
||||||
v = _ext.adapt(self.wrapped.values())
|
v = _ext.adapt([unicode(x) if x is not None else None for x in self.wrapped.values()])
|
||||||
v.prepare(self.conn)
|
v.prepare(self.conn)
|
||||||
return b"hstore(" + k.getquoted() + b", " + v.getquoted() + b")"
|
return b"hstore(" + k.getquoted() + b", " + v.getquoted() + b")"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user