mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-15 23:42:40 +00:00
CONPY-284: Fix compiler warning/error
This commit is contained in:
@ -1135,7 +1135,7 @@ MrdbCursor_execute_text(MrdbCursor *self, PyObject *stmt)
|
||||
statement = PyUnicode_AsUTF8AndSize(stmt, (Py_ssize_t *)&statement_len);
|
||||
} else if (Py_TYPE(stmt) == &PyBytes_Type)
|
||||
{
|
||||
PyBytes_AsStringAndSize(stmt, &statement, (Py_ssize_t *)&statement_len);
|
||||
PyBytes_AsStringAndSize(stmt, (char **)&statement, (Py_ssize_t *)&statement_len);
|
||||
}
|
||||
else {
|
||||
PyErr_SetString(PyExc_TypeError, "Parameter must be a string or bytes");
|
||||
|
Reference in New Issue
Block a user