Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuotedString.encoding behaviour is different than psycopg2 #126

Open
iurisilvio opened this issue Jan 28, 2022 · 1 comment
Open

QuotedString.encoding behaviour is different than psycopg2 #126

iurisilvio opened this issue Jan 28, 2022 · 1 comment

Comments

@iurisilvio
Copy link

QuotedString.encoding has getter/setter in psycopg2, but psycopg2cffi has only a getter.

def encoding(self):

https://github.com/psycopg/psycopg2/blob/1d3a89a0bba621dc1cc9b32db6d241bd2da85ad1/psycopg/adapter_qstring.c#L157

I found the difference because Django expects the setter.

https://github.com/django/django/blob/c5c7a15b09368a58340d3a65ba9d1f1441e92dc8/django/db/backends/postgresql/schema.py#L43

Is it a psycopg2cffi or Django issue?

@Grollicus
Copy link

Just a heads up, I ran into this too and built #127 to fix it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants