summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/cursor.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-07-10 04:20:23 (GMT)
committerGitHub <noreply@github.com>2018-07-10 04:20:23 (GMT)
commit7762e4d3872818272800dfbd8e1d8e3a689eb8f2 (patch)
tree6f0cecbbbff18225b574f25e1a8c34e80d0d465d /Modules/_sqlite/cursor.c
parentd6d4432724b12efc0d280b8eb80bca0deb8d4323 (diff)
downloadcpython-7762e4d3872818272800dfbd8e1d8e3a689eb8f2.zip
cpython-7762e4d3872818272800dfbd8e1d8e3a689eb8f2.tar.gz
cpython-7762e4d3872818272800dfbd8e1d8e3a689eb8f2.tar.bz2
prefix internal sqlite symbols with _pysqlite_ (GH-8215)
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r--Modules/_sqlite/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 4ecb5b4..e96f388 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -109,7 +109,7 @@ PyObject* _pysqlite_get_converter(PyObject* key)
return NULL;
}
- retval = PyDict_GetItem(converters, upcase_key);
+ retval = PyDict_GetItem(_pysqlite_converters, upcase_key);
Py_DECREF(upcase_key);
return retval;
@@ -539,7 +539,7 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject*
if (rc != SQLITE_DONE && rc != SQLITE_ROW) {
if (PyErr_Occurred()) {
/* there was an error that occurred in a user-defined callback */
- if (_enable_callback_tracebacks) {
+ if (_pysqlite_enable_callback_tracebacks) {
PyErr_Print();
} else {
PyErr_Clear();