feat: prefer KILL QUERY over KILL on MySQL and MariaDB, when using the "Kill process" menu item in Host > processlist

Refs #1567
This commit is contained in:
Ansgar Becker
2026-02-07 16:06:05 +01:00
parent 27e26a6815
commit b3743d85b5

View File

@@ -6671,7 +6671,7 @@ begin
if pid = Conn.ThreadId then
LogSQL(f_('Ignoring own process id #%d when trying to kill it.', [pid]))
else try
Conn.Query(Conn.GetSQLSpecifity(spKillProcess, [pid]));
Conn.Query(Conn.GetSQLSpecifity(spKillQuery, [pid]));
except
on E:EDbError do begin
if Conn.LastErrorCode <> ER_NO_SUCH_THREAD then