diff options
author | bar@mysql.com <> | 2005-10-14 14:17:15 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2005-10-14 14:17:15 +0500 |
commit | aec79cc4634d4d6825a6573f0cfb86869a699a18 (patch) | |
tree | 6cb3c72fffd48e3ca67813de986b372b7e4a7491 /client | |
parent | a3eea8849c9c5dbb74802a7259d62758ef9732cc (diff) | |
parent | 48238e1b9001152d8ccbba28972f99c1e15fd1a5 (diff) | |
download | mariadb-git-aec79cc4634d4d6825a6573f0cfb86869a699a18.tar.gz |
Merge mysql.com:/usr/home/bar/mysql-4.1
into mysql.com:/usr/home/bar/mysql-5.0
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 8d5e576ca23..989e2dae3ef 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1193,11 +1193,16 @@ static bool add_line(String &buffer,char *line,char *in_string, #ifdef USE_MB int length; if (use_mb(charset_info) && - (length= my_ismbchar(charset_info, pos, end_of_line))) + (lenght= my_ismbchar(charset_info, pos, end_of_line))) { - while (length--) - *out++ = *pos++; - pos--; + if (!*ml_comment) + { + while (lenght--) + *out++ = *pos++; + pos--; + } + else + pos+= lenght - 1; continue; } #endif |