You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the binary protocol, hstore columns are not correctly decoded. Related code. This results in type errors because the data is received as raw bytes rather than a Python dictionary. I went ahead and implemented missing binary loader/dumper classes:
_encoding is the current connection encoding (from psycopg._encodings import conn_encoding).
Note
If you're planning to use any part or all of the suggested code, please add me to the commit's Co-authored-by list. I enjoy collecting contributions to open source projects 🙂.
PS.
I saw #1028 (comment) but I can't guarantee I'll be able to submit a PR soon. I may or may not be able to - it depends on my other work. So feel free to integrate it early (or not) if you have spare capacity.
When using the binary protocol, hstore columns are not correctly decoded. Related code. This results in type errors because the data is received as raw bytes rather than a Python dictionary. I went ahead and implemented missing binary loader/dumper classes:
_encoding is the current connection encoding (from psycopg._encodings import conn_encoding).
Note
If you're planning to use any part or all of the suggested code, please add me to the commit's Co-authored-by list. I enjoy collecting contributions to open source projects 🙂.
PS.
I saw #1028 (comment) but I can't guarantee I'll be able to submit a PR soon. I may or may not be able to - it depends on my other work. So feel free to integrate it early (or not) if you have spare capacity.