From: Date: February 6 2008 4:33am Subject: bk commit into 5.0 tree (mtaylor:1.2574) BUG#34339 List-Archive: http://lists.mysql.com/commits/41748 X-Bug: 34339 Message-Id: Below is the list of changes that have just been committed into a local 5.0 repository of mtaylor. When mtaylor does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2008-02-06 04:33:27+01:00, mtaylor@solace.(none) +1 -0 Strip comments from queries before explaining them. Fixes BUG#34339 scripts/mysql_explain_log.sh@stripped, 2008-02-06 04:33:26+01:00, mtaylor@solace.(none) +4 -3 Strip comments from queries before explaining them. Fixes BUG#34339 diff -Nrup a/scripts/mysql_explain_log.sh b/scripts/mysql_explain_log.sh --- a/scripts/mysql_explain_log.sh 2007-12-27 22:03:19 +01:00 +++ b/scripts/mysql_explain_log.sh 2008-02-06 04:33:26 +01:00 @@ -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"; }