1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

patch for task WL 1941 "NO_C_ESCAPE sql_mode"

This commit is contained in:
vva@eagle.mysql.r18.ru
2004-07-07 17:26:43 +05:00
parent 731c2acaed
commit e9e5b3547e
6 changed files with 353 additions and 3 deletions

View File

@ -250,7 +250,8 @@ static char *get_text(LEX *lex)
continue;
}
#endif
if (c == '\\')
if (c == '\\' &&
!(lex->thd->variables.sql_mode & MODE_NO_BACKSLASH_ESCAPES))
{ // Escaped character
found_escape=1;
if (lex->ptr == lex->end_of_query)