1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Bug#13487 Japanese data inside a comment causes the syntax error

mysql.cc:
  Fixed not to copy multibyte characters to the
  target string if we are inside a comment.


client/mysql.cc:
  Bug#13487 Japanese data inside a comment causes the syntax error
  Fixed not to copy multibyte characters to the
  target string if we are inside a comment.
  ,
This commit is contained in:
unknown
2005-09-28 15:46:09 +05:00
parent 0559f1e012
commit 1bdd8a6275

View File

@@ -1157,10 +1157,16 @@ static bool add_line(String &buffer,char *line,char *in_string,
#ifdef USE_MB #ifdef USE_MB
int l; int l;
if (use_mb(charset_info) && if (use_mb(charset_info) &&
(l = my_ismbchar(charset_info, pos, strend))) { (l= my_ismbchar(charset_info, pos, strend)))
{
if (!*ml_comment)
{
while (l--) while (l--)
*out++ = *pos++; *out++ = *pos++;
pos--; pos--;
}
else
pos+= l - 1;
continue; continue;
} }
#endif #endif