Performance fix:

Rewrote parameter type checks for text protocol in cpython.
This commit is contained in:
Georg Richter
2023-04-17 09:51:41 +02:00
parent 658cc0015c
commit b0366fa108
4 changed files with 33 additions and 6 deletions

View File

@ -891,7 +891,7 @@ mariadb_get_column_info(PyObject *obj, MrdbParamInfo *paraminfo)
return 1;
}
static PyObject *ListOrTuple_GetItem(PyObject *obj, Py_ssize_t index)
PyObject *ListOrTuple_GetItem(PyObject *obj, Py_ssize_t index)
{
if (CHECK_TYPE(obj, &PyList_Type))
{