summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortnurnberg@mysql.com/salvation.intern.azundris.com <>2006-07-13 09:04:06 +0200
committertnurnberg@mysql.com/salvation.intern.azundris.com <>2006-07-13 09:04:06 +0200
commit4be51e1644c2a002aa78a5f5ae06b09eef38c400 (patch)
tree0fe657933204978a8b402736cbc05c4cb54d2136 /client
parent22485908ce5eb1ab04869f3636bed0b980613015 (diff)
downloadmariadb-git-4be51e1644c2a002aa78a5f5ae06b09eef38c400.tar.gz
Bug#20432: mysql client interprets commands in comments
do not look for client-specific commands while inside a multi-line comment. we will allow multi-comments pretty much anywhere within SQL-statements, but client-specific commands (help, use, print, ...) must be the first token in the input.
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 2f9031b84b8..09818ae27b3 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1052,7 +1052,7 @@ static int read_lines(bool execute_commands)
(We want to allow help, print and clear anywhere at line start
*/
if (execute_commands && (named_cmds || glob_buffer.is_empty())
- && !in_string && (com=find_command(line,0)))
+ && !ml_comment && !in_string && (com=find_command(line,0)))
{
if ((*com->func)(&glob_buffer,line) > 0)
break;