Commit 93f1df5e authored by unknown's avatar unknown

Fixed code that parses the DELIMITER command to correctly calculate

the length of the remaining input string.

This is to fix mysqldump test failure in PB introduced by the patch
for bug #26215.


client/mysql.cc:
  Fixed code that parses the DELIMITER command to correctly calculate 
  the length of the remaining input string.
parent 1daa54d6
...@@ -1347,10 +1347,9 @@ static bool add_line(String &buffer,char *line,char *in_string, ...@@ -1347,10 +1347,9 @@ static bool add_line(String &buffer,char *line,char *in_string,
} }
} }
else if (!*ml_comment && !*in_string && else if (!*ml_comment && !*in_string &&
(out - line) >= 9 && strlen(pos) >= 10 &&
!my_strnncoll(charset_info, (uchar*) pos, 9, !my_strnncoll(charset_info, (uchar*) pos, 10,
(const uchar*) "delimiter", 9) && (const uchar*) "delimiter ", 10))
my_isspace(charset_info, pos[9]))
{ {
// Flush previously accepted characters // Flush previously accepted characters
if (out != line) if (out != line)
......
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