summaryrefslogtreecommitdiff
path: root/psycopg/connection.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-18 05:02:11 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-21 04:02:14 +0000
commite182201e6ee8075a88b63c9d8338f833bd2471b0 (patch)
tree6b4adf73afd5f61c6cc549422e2be38fd720172e /psycopg/connection.h
parentae06fb03e75c47f662606490203f365be26afd46 (diff)
downloadpsycopg2-e182201e6ee8075a88b63c9d8338f833bd2471b0.tar.gz
Added Python codec name to the connection.
This allows dropping repeated dictionary lookups with unicode query/parameters.
Diffstat (limited to 'psycopg/connection.h')
-rw-r--r--psycopg/connection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/psycopg/connection.h b/psycopg/connection.h
index 477c690..41e0cdc 100644
--- a/psycopg/connection.h
+++ b/psycopg/connection.h
@@ -83,6 +83,7 @@ typedef struct {
char *dsn; /* data source name */
char *critical; /* critical error on this connection */
char *encoding; /* current backend encoding */
+ char *codec; /* python codec name for encoding */
long int closed; /* 1 means connection has been closed;
2 that something horrible happened */