Commit 6bbd6931 authored by serg@serg.mylan's avatar serg@serg.mylan

Merge bk-internal:/home/bk/mysql-4.1/

into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents 737bade9 11b7605a
...@@ -1094,14 +1094,13 @@ static bool add_line(String &buffer,char *line,char *in_string, ...@@ -1094,14 +1094,13 @@ static bool add_line(String &buffer,char *line,char *in_string,
{ // Add found char to buffer { // Add found char to buffer
if (inchar == *in_string) if (inchar == *in_string)
*in_string= 0; *in_string= 0;
else if (!*ml_comment) else if (!*ml_comment && !*in_string &&
{ (inchar == '\'' || inchar == '"' || inchar == '`'))
if (!*in_string && (inchar == '\'' || inchar == '"' || inchar == '`'))
*in_string= (char) inchar; *in_string= (char) inchar;
if (!*ml_comment)
*out++= (char) inchar; *out++= (char) inchar;
} }
} }
}
if (out != line || !buffer.is_empty()) if (out != line || !buffer.is_empty())
{ {
*out++='\n'; *out++='\n';
......
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