diff --git a/lib/extras.py b/lib/extras.py index 69c7f320..6f8fafec 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -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")"