diff options
author | unknown <mtaylor@solace.(none)> | 2008-02-06 04:33:27 +0100 |
---|---|---|
committer | unknown <mtaylor@solace.(none)> | 2008-02-06 04:33:27 +0100 |
commit | 52da7a4e1b33a9a54b0015e22c2cf22ea76c46d1 (patch) | |
tree | d43ef4329ece876b07ebc48c9a33599bdc22d3d7 /scripts | |
parent | fb9c0158b2328d326acb9e9af9a2e85a72840afe (diff) | |
download | mariadb-git-52da7a4e1b33a9a54b0015e22c2cf22ea76c46d1.tar.gz |
Strip comments from queries before explaining them. Fixes BUG#34339
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_explain_log.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/mysql_explain_log.sh b/scripts/mysql_explain_log.sh index f3c7a4b04fa..30bee722873 100644 --- a/scripts/mysql_explain_log.sh +++ b/scripts/mysql_explain_log.sh @@ -196,9 +196,10 @@ if (defined ($help)) { elsif (m/^\s+(.+)$/ ) { # command could be some lines ... #print "multi-lined ($1)\n"; my ($A)=$1; - chomp $A; - $Param->{Query} .= " $1"; - #print "multi-lined ($1)<<$Param->{Query}>>\n"; + $A =~ s/\-\-.*//; + + $Param->{Query} .= " $A"; + #print "multi-lined ($A)<<$Param->{Query}>>\n"; } |