Skip to content

Commit c919bbc

Browse files
Anushree Prakash BHery Ramilison
authored andcommitted
Merge branch 'mysql-5.6' into mysql-5.7
(cherry picked from commit 06db648de3b080bae518a083dd122ea10b058c04)
1 parent b8884c6 commit c919bbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/mysql.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2581,7 +2581,10 @@ static bool add_line(String &buffer, char *line, size_t line_length,
25812581
if (*in_string || inchar == 'N') // \N is short for NULL
25822582
{ // Don't allow commands in string
25832583
*out++='\\';
2584-
*out++= (char) inchar;
2584+
if ((inchar == '`') && (*in_string == inchar))
2585+
pos--;
2586+
else
2587+
*out++= (char) inchar;
25852588
continue;
25862589
}
25872590
if ((com= find_command((char) inchar)))

0 commit comments

Comments
 (0)