diff options
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 8d5e576ca23..3882b61b9ad 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1195,9 +1195,14 @@ static bool add_line(String &buffer,char *line,char *in_string, if (use_mb(charset_info) && (length= my_ismbchar(charset_info, pos, end_of_line))) { - while (length--) - *out++ = *pos++; - pos--; + if (!*ml_comment) + { + while (length--) + *out++ = *pos++; + pos--; + } + else + pos+= length - 1; continue; } #endif |