Skip to content

Commit

Permalink
fix build issue introduced in 2.2.2 (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Feb 4, 2024
1 parent 7c199a9 commit b34f8ef
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit b34f8ef

Please sign in to comment.