Commit fcd34e7f authored by unknown's avatar unknown

a fix for mysql client


client/mysql.cc:
  A fix for mysql client which did filtered out queries of the type:
  /*!40001 select 1 */
parent 1a61c012
...@@ -1029,7 +1029,7 @@ static bool add_line(String &buffer,char *line,char *in_string, ...@@ -1029,7 +1029,7 @@ static bool add_line(String &buffer,char *line,char *in_string,
inchar == '-' && pos[1] == '-' && inchar == '-' && pos[1] == '-' &&
my_isspace(system_charset_info,pos[2])))) my_isspace(system_charset_info,pos[2]))))
break; // comment to end of line break; // comment to end of line
else if (!*in_string && inchar == '/' && *(pos+1) == '*') else if (!*in_string && inchar == '/' && *(pos+1) == '*' && *(pos+2) != '!')
{ {
pos++; pos++;
*ml_comment= 1; *ml_comment= 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment