Skip to content

QuotedString.encoding behaviour is different than psycopg2 #126

@iurisilvio

Description

@iurisilvio

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions