summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/cursor.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2022-02-16 15:24:44 (GMT)
committerGitHub <noreply@github.com>2022-02-16 15:24:44 (GMT)
commitb2077117d125925210148294eefee28797b7ff4c (patch)
tree882ab0be1bbfa306c6f0371220947c5fcc8ca848 /Modules/_sqlite/cursor.c
parentd64f3caebe8f8e31ecd193e0bd25105400153ece (diff)
downloadcpython-b2077117d125925210148294eefee28797b7ff4c.zip
cpython-b2077117d125925210148294eefee28797b7ff4c.tar.gz
cpython-b2077117d125925210148294eefee28797b7ff4c.tar.bz2
bpo-46541: Replace _Py_IDENTIFIER with _Py_ID in sqlite3 (GH-31351)
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r--Modules/_sqlite/cursor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 395b10f..b0dd9dd 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -21,8 +21,6 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
-#define NEEDS_PY_IDENTIFIER
-
#include "cursor.h"
#include "module.h"
#include "util.h"
@@ -131,13 +129,12 @@ _pysqlite_get_converter(pysqlite_state *state, const char *keystr,
PyObject *key;
PyObject *upcase_key;
PyObject *retval;
- _Py_IDENTIFIER(upper);
key = PyUnicode_FromStringAndSize(keystr, keylen);
if (!key) {
return NULL;
}
- upcase_key = _PyObject_CallMethodIdNoArgs(key, &PyId_upper);
+ upcase_key = PyObject_CallMethodNoArgs(key, state->str_upper);
Py_DECREF(key);
if (!upcase_key) {
return NULL;
@@ -457,7 +454,7 @@ get_statement_from_cache(pysqlite_Cursor *self, PyObject *operation)
return PyObject_Vectorcall(cache, args + 1, nargsf, NULL);
}
-static PyObject *
+PyObject *
_pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation, PyObject* second_argument)
{
PyObject* parameters_list = NULL;