8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046d36c commit 40303c8Copy full SHA for 40303c8
.github/workflows/test.yaml
@@ -44,6 +44,10 @@ jobs:
44
py: "3.10"
45
mysql_auth: true
46
47
+ - db: "mysql:8.4"
48
+ py: "3.13"
49
+ mysql_auth: true
50
+
51
services:
52
mysql:
53
image: "${{ matrix.db }}"
pymysql/connections.py
@@ -576,9 +576,9 @@ def affected_rows(self):
576
return self._affected_rows
577
578
def kill(self, thread_id):
579
- arg = struct.pack("<I", thread_id)
580
- self._execute_command(COMMAND.COM_PROCESS_KILL, arg)
581
- return self._read_ok_packet()
+ if not isinstance(thread_id, int):
+ raise TypeError("thread_id must be an integer")
+ self.query(f"KILL {thread_id:d}")
582
583
def ping(self, reconnect=True):
584
"""
0 commit comments