diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-03-17 18:45:25 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-03-17 18:45:25 +0000 |
commit | dc5dd3052612fa79aa7416f100d982a5d8cb477b (patch) | |
tree | d5d38ea759a17c0dcf507a23cb5cf727b65c129a /psycopg/adapter_qstring.c | |
parent | e4d365705aeb0c2f0f0877d7544c827e949dff37 (diff) | |
download | psycopg2-naming.tar.gz |
Prefix 'psycopg_' changed to 'psyco_'naming
Diffstat (limited to 'psycopg/adapter_qstring.c')
-rw-r--r-- | psycopg/adapter_qstring.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/psycopg/adapter_qstring.c b/psycopg/adapter_qstring.c index 9b06704..302e515 100644 --- a/psycopg/adapter_qstring.c +++ b/psycopg/adapter_qstring.c @@ -73,7 +73,7 @@ qstring_quote(qstringObject *self) /* encode the string into buffer */ Bytes_AsStringAndSize(str, &s, &len); - if (!(buffer = psycopg_escape_string(self->conn, s, len, NULL, &qlen))) { + if (!(buffer = psyco_escape_string(self->conn, s, len, NULL, &qlen))) { goto exit; } @@ -107,7 +107,7 @@ qstring_getquoted(qstringObject *self, PyObject *args) static PyObject * qstring_str(qstringObject *self) { - return psycopg_ensure_text(qstring_getquoted(self, NULL)); + return psyco_ensure_text(qstring_getquoted(self, NULL)); } static PyObject * @@ -161,9 +161,9 @@ qstring_set_encoding(qstringObject *self, PyObject *pyenc) /* get a C copy of the encoding (which may come from unicode) */ Py_INCREF(pyenc); - if (!(pyenc = psycopg_ensure_bytes(pyenc))) { goto exit; } + if (!(pyenc = psyco_ensure_bytes(pyenc))) { goto exit; } if (!(tmp = Bytes_AsString(pyenc))) { goto exit; } - if (0 > psycopg_strdup(&cenc, tmp, -1)) { goto exit; } + if (0 > psyco_strdup(&cenc, tmp, -1)) { goto exit; } Dprintf("qstring_set_encoding: encoding set to %s", cenc); PyMem_Free((void *)self->encoding); |