mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-14 18:12:35 +08:00
fix build issue introduced in 2.2.2 (#696)
This commit is contained in:
@ -1797,8 +1797,9 @@ _mysql_ConnectionObject_kill(
|
||||
char query[50];
|
||||
if (!PyArg_ParseTuple(args, "k:kill", &pid)) return NULL;
|
||||
check_connection(self);
|
||||
snprintf(query, 50, "KILL %lu", pid);
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
r = mysql_query(&(self->connection), snprintf(query, 50, "KILL %d", pid));
|
||||
r = mysql_query(&(self->connection), query);
|
||||
Py_END_ALLOW_THREADS
|
||||
if (r) return _mysql_Exception(self);
|
||||
Py_RETURN_NONE;
|
||||
|
Reference in New Issue
Block a user