Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/MySQLdb/_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down