summaryrefslogtreecommitdiff
path: root/psycopg
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-01-10 23:06:31 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-01-11 08:55:31 +0900
commite0226fc46ad21f10ca612b32659bab442d2db871 (patch)
tree58c7d856398b3e750fab62d9bc8095567ac8df8f /psycopg
parent04f1f06b9f1f627436c1202aaa45434334c8747d (diff)
downloadpsycopg2-e0226fc46ad21f10ca612b32659bab442d2db871.tar.gz
'cursor.mogrify()' can be called on closed cursorsmogrify-on-closed-cursor
Fix #579.
Diffstat (limited to 'psycopg')
-rw-r--r--psycopg/cursor_type.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c
index a70e9d3..b7fd187 100644
--- a/psycopg/cursor_type.c
+++ b/psycopg/cursor_type.c
@@ -592,8 +592,6 @@ psyco_curs_mogrify(cursorObject *self, PyObject *args, PyObject *kwargs)
return NULL;
}
- EXC_IF_CURS_CLOSED(self);
-
return _psyco_curs_mogrify(self, operation, vars);
}