1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-13187 incorrect backslash parsing in clients

don't do backslash escapes inside backticks
This commit is contained in:
Sergei Golubchik
2017-06-27 13:25:50 +02:00
parent ded614d7db
commit 39385ff7b2
4 changed files with 47 additions and 4 deletions

View File

@@ -2287,8 +2287,8 @@ static bool add_line(String &buffer, char *line, ulong line_length,
continue;
}
#endif
if (!*ml_comment && inchar == '\\' &&
!(*in_string &&
if (!*ml_comment && inchar == '\\' && *in_string != '`' &&
!(*in_string &&
(mysql.server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)))
{
// Found possbile one character command like \c