summaryrefslogtreecommitdiff
path: root/psycopg/connection.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-12-29 21:13:19 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-12-29 22:03:12 +0100
commitd4e5cb06cc707dbffbbfd2db4209c91e534cfd8a (patch)
tree3abef2649b4daafbffbd5d49f0386c249b257f94 /psycopg/connection.h
parent4668396264d0e23bf2e83150ce04c2ed989514e6 (diff)
downloadpsycopg2-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.h4
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 */
};