diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-26 17:40:08 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-27 00:29:01 +0100 |
commit | a255e4e1c6bbe32b0865da410fecd7be067902a7 (patch) | |
tree | f3ec7c8d7581c0563a35348f2a17f8377d8d5ab9 /psycopg/connection_type.c | |
parent | 17a74cc77126a15d289d2b568fcf1251b05bcbb3 (diff) | |
download | psycopg2-a255e4e1c6bbe32b0865da410fecd7be067902a7.tar.gz |
Store python encoding and decoding functions in the connection
Unused for now: will be used instead of 'pyenc', which is to be dropped.
Diffstat (limited to 'psycopg/connection_type.c')
-rw-r--r-- | psycopg/connection_type.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index df4ae86..d22ceb9 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -1141,6 +1141,9 @@ connection_clear(connectionObject *self) Py_CLEAR(self->notifies); Py_CLEAR(self->string_types); Py_CLEAR(self->binary_types); + Py_CLEAR(self->cursor_factory); + Py_CLEAR(self->pyencoder); + Py_CLEAR(self->pydecoder); return 0; } @@ -1216,6 +1219,9 @@ connection_traverse(connectionObject *self, visitproc visit, void *arg) Py_VISIT(self->notifies); Py_VISIT(self->string_types); Py_VISIT(self->binary_types); + Py_VISIT(self->cursor_factory); + Py_VISIT(self->pyencoder); + Py_VISIT(self->pydecoder); return 0; } |