From 9368f3147ce02dc6ff2977b0a378c73bba21d3e2 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 13 Jun 2015 10:21:28 +0000 Subject: [PATCH] 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 --- source/helpers.pas | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/helpers.pas b/source/helpers.pas index 5e2dbd72..b1a6694d 100644 --- a/source/helpers.pas +++ b/source/helpers.pas @@ -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;