diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-29 21:13:19 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-29 22:03:12 +0100 |
commit | d4e5cb06cc707dbffbbfd2db4209c91e534cfd8a (patch) | |
tree | 3abef2649b4daafbffbd5d49f0386c249b257f94 /psycopg/connection.h | |
parent | 4668396264d0e23bf2e83150ce04c2ed989514e6 (diff) | |
download | psycopg2-fast-codecs.tar.gz |
Use the proper API functions to look up codec functionsfast-codecs
Diffstat (limited to 'psycopg/connection.h')
-rw-r--r-- | psycopg/connection.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/psycopg/connection.h b/psycopg/connection.h index 6c5a5f6..2e2d51d 100644 --- a/psycopg/connection.h +++ b/psycopg/connection.h @@ -122,9 +122,11 @@ struct connectionObject { PyObject *cursor_factory; /* default cursor factory from cursor() */ - /* Pointer to a decoding function, e.g. PyUnicode_DecodeUTF8 */ + /* Optional pointer to a decoding C function, e.g. PyUnicode_DecodeUTF8 */ PyObject *(*cdecoder)(const char *, Py_ssize_t, const char *); + /* Pointers to python encoding/decoding functions, e.g. + * codecs.getdecoder('utf8') */ PyObject *pyencoder; /* python codec encoding function */ PyObject *pydecoder; /* python codec decoding function */ }; |