summaryrefslogtreecommitdiff
path: root/psycopg/adapter_qstring.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-12-26 12:25:13 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-12-26 12:25:13 +0100
commitf439ca61d678ed2fe34c132580cd6e8a581819f7 (patch)
tree6f375d62b78c53fbe6a37347be34d1163341d22b /psycopg/adapter_qstring.c
parent7caba160b7083c64197329e17d0d0e0eb17c8639 (diff)
downloadpsycopg2-f439ca61d678ed2fe34c132580cd6e8a581819f7.tar.gz
conn->codec rename to pyenc
Diffstat (limited to 'psycopg/adapter_qstring.c')
-rw-r--r--psycopg/adapter_qstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/adapter_qstring.c b/psycopg/adapter_qstring.c
index 8c5a8f1..eca4218 100644
--- a/psycopg/adapter_qstring.c
+++ b/psycopg/adapter_qstring.c
@@ -43,7 +43,7 @@ _qstring_get_encoding(qstringObject *self)
conn->encoding but if the encoding is not specified we don't know what
to do and we raise an exception */
if (self->conn) {
- return self->conn->codec;
+ return self->conn->pyenc;
}
else {
return self->encoding ? self->encoding : default_encoding;