mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Fix crash when trying to stop current query and the helper connection cannot connect for some reason.
This commit is contained in:
@ -13448,9 +13448,9 @@ begin
|
|||||||
Killer.Parameters := ActiveConnection.Parameters;
|
Killer.Parameters := ActiveConnection.Parameters;
|
||||||
Killer.LogPrefix := _('Helper connection');
|
Killer.LogPrefix := _('Helper connection');
|
||||||
Killer.OnLog := LogSQL;
|
Killer.OnLog := LogSQL;
|
||||||
|
try
|
||||||
Killer.Active := True;
|
Killer.Active := True;
|
||||||
KillCommand := Killer.GetSQLSpecifity(spKillQuery, [ActiveConnection.ThreadId]);
|
KillCommand := Killer.GetSQLSpecifity(spKillQuery, [ActiveConnection.ThreadId]);
|
||||||
try
|
|
||||||
Killer.Query(KillCommand);
|
Killer.Query(KillCommand);
|
||||||
except
|
except
|
||||||
on E:EDbError do begin
|
on E:EDbError do begin
|
||||||
|
Reference in New Issue
Block a user