summaryrefslogtreecommitdiff
path: root/psycopg/psycopgmodule.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-12-26 04:57:07 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-12-26 04:57:07 +0100
commite9577e9b890fd9a27bb146e8ea1c24eb562f28b2 (patch)
tree5c5681e11b06d5cfb528219aaee05fe59b1b7ef4 /psycopg/psycopgmodule.c
parentc46b6ea719b8a1cd97ed0161de6b6e31e0319d2b (diff)
parentffeb7001ebfaab34613ce604a509dfa1de193b80 (diff)
downloadpsycopg2-e9577e9b890fd9a27bb146e8ea1c24eb562f28b2.tar.gz
Merge branch 'named-callproc'
Diffstat (limited to 'psycopg/psycopgmodule.c')
-rw-r--r--psycopg/psycopgmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index 012df6b..bf7d908 100644
--- a/psycopg/psycopgmodule.c
+++ b/psycopg/psycopgmodule.c
@@ -62,7 +62,6 @@
HIDDEN PyObject *pyDateTimeModuleP = NULL;
HIDDEN PyObject *psycoEncodings = NULL;
-
#ifdef PSYCOPG_DEBUG
HIDDEN int psycopg_debug_enabled = 0;
#endif
@@ -191,9 +190,8 @@ psyco_quote_ident(PyObject *self, PyObject *args, PyObject *kwargs)
str = Bytes_AS_STRING(ident);
- quoted = PQescapeIdentifier(conn->pgconn, str, strlen(str));
+ quoted = psycopg_escape_identifier(conn, str, strlen(str));
if (!quoted) {
- PyErr_NoMemory();
goto exit;
}
result = conn_text_from_chars(conn, quoted);