mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Strip comments from queries before explaining them. Fixes BUG#34339
This commit is contained in:
@ -196,9 +196,10 @@ if (defined ($help)) {
|
|||||||
elsif (m/^\s+(.+)$/ ) { # command could be some lines ...
|
elsif (m/^\s+(.+)$/ ) { # command could be some lines ...
|
||||||
#print "multi-lined ($1)\n";
|
#print "multi-lined ($1)\n";
|
||||||
my ($A)=$1;
|
my ($A)=$1;
|
||||||
chomp $A;
|
$A =~ s/\-\-.*//;
|
||||||
$Param->{Query} .= " $1";
|
|
||||||
#print "multi-lined ($1)<<$Param->{Query}>>\n";
|
$Param->{Query} .= " $A";
|
||||||
|
#print "multi-lined ($A)<<$Param->{Query}>>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user