1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-13187 incorrect backslash parsing in clients

cover ANSI_QUOTES and NO_BACKSLASH_ESCAPES in mysqltest
This commit is contained in:
Sergei Golubchik
2017-06-27 14:00:10 +02:00
parent 39385ff7b2
commit d5cd334504
9 changed files with 79 additions and 3 deletions

View File

@@ -2288,6 +2288,8 @@ static bool add_line(String &buffer, char *line, ulong line_length,
}
#endif
if (!*ml_comment && inchar == '\\' && *in_string != '`' &&
!(*in_string == '"' &&
(mysql.server_status & SERVER_STATUS_ANSI_QUOTES)) &&
!(*in_string &&
(mysql.server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)))
{