mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Log debug message in helpers.ShellExec(), so we can check the url which Heidi sends to MariaDB's explain analyzer. See http://www.heidisql.com/forum.php?t=18677
This commit is contained in:
@@ -928,7 +928,15 @@ end;
|
||||
@param string Working directory, only usefull is first param is a system command
|
||||
}
|
||||
procedure ShellExec(cmd: String; path: String=''; params: String='');
|
||||
var
|
||||
Msg: String;
|
||||
begin
|
||||
Msg := 'Executing shell command: "'+cmd+'"';
|
||||
if not path.IsEmpty then
|
||||
Msg := Msg + ' path: "'+path+'"';
|
||||
if not params.IsEmpty then
|
||||
Msg := Msg + ' params: "'+params+'"';
|
||||
MainForm.LogSQL(Msg, lcDebug);
|
||||
ShellExecute(0, 'open', PChar(cmd), PChar(params), PChar(path), SW_SHOWNORMAL);
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user