diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2013-04-04 22:48:53 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2013-04-04 22:48:53 +0100 |
| commit | 7a5a226b49f0e6e0bedb76c78586f46cf64c7958 (patch) | |
| tree | df9edd3509c21dac869d518521fa353b2029451a /psycopg/adapter_qstring.c | |
| parent | 7328aaf0fbc8a5abdea2f30f875e904135743398 (diff) | |
| download | psycopg2-7a5a226b49f0e6e0bedb76c78586f46cf64c7958.tar.gz | |
Set a memory exception in psycopg_escape_string
...otherwise all the callers should set it.
Diffstat (limited to 'psycopg/adapter_qstring.c')
| -rw-r--r-- | psycopg/adapter_qstring.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/psycopg/adapter_qstring.c b/psycopg/adapter_qstring.c index f2efac3..6f7bf50 100644 --- a/psycopg/adapter_qstring.c +++ b/psycopg/adapter_qstring.c @@ -75,7 +75,6 @@ qstring_quote(qstringObject *self) Bytes_AsStringAndSize(str, &s, &len); if (!(buffer = psycopg_escape_string(self->conn, s, len, NULL, &qlen))) { Py_DECREF(str); - PyErr_NoMemory(); return NULL; } |
