summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorbar@mysql.com <>2005-10-14 14:17:15 +0500
committerbar@mysql.com <>2005-10-14 14:17:15 +0500
commitaec79cc4634d4d6825a6573f0cfb86869a699a18 (patch)
tree6cb3c72fffd48e3ca67813de986b372b7e4a7491 /client
parenta3eea8849c9c5dbb74802a7259d62758ef9732cc (diff)
parent48238e1b9001152d8ccbba28972f99c1e15fd1a5 (diff)
downloadmariadb-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.cc13
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