diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2015-06-02 17:02:04 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2015-06-02 17:02:04 +0100 |
commit | 1f330e9cac9c5d40c33f4f58d0dbfc0109c62edc (patch) | |
tree | 0e4d67997ee734ac3025774a163c031e8a217b7b /psycopg/connection_type.c | |
parent | 2ad82b973b86fa71126657aacee89a30d2211894 (diff) | |
download | psycopg2-1f330e9cac9c5d40c33f4f58d0dbfc0109c62edc.tar.gz |
Allow connection.notices and notifies to be replaced.
Close #326
Diffstat (limited to 'psycopg/connection_type.c')
-rw-r--r-- | psycopg/connection_type.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index 9931399..2c1dddf 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -1001,8 +1001,8 @@ static struct PyMemberDef connectionObject_members[] = { "True if the connection is closed."}, {"encoding", T_STRING, offsetof(connectionObject, encoding), READONLY, "The current client encoding."}, - {"notices", T_OBJECT, offsetof(connectionObject, notice_list), READONLY}, - {"notifies", T_OBJECT, offsetof(connectionObject, notifies), READONLY}, + {"notices", T_OBJECT, offsetof(connectionObject, notice_list), 0}, + {"notifies", T_OBJECT, offsetof(connectionObject, notifies), 0}, {"dsn", T_STRING, offsetof(connectionObject, dsn), READONLY, "The current connection string."}, {"async", T_LONG, offsetof(connectionObject, async), READONLY, |