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

Bug #20103: Escaping with backslash does not work

- make the client to respect the server-side 
   no_backslash_escapes option and disable the 
   special meaning of backslash also at client side.
This commit is contained in:
gkodinov/kgeorge@macbook.gmz
2006-08-01 11:05:54 +03:00
parent 21e6d13147
commit 7b5e4ed026
3 changed files with 17 additions and 1 deletions

View File

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