mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge remote-tracking branch '5.5' into 10.0
This commit is contained in:
@@ -4593,8 +4593,11 @@ static char *get_arg(char *line, get_arg_mode mode)
|
||||
}
|
||||
for (start=ptr ; *ptr; ptr++)
|
||||
{
|
||||
if ((*ptr == '\\' && ptr[1]) || // escaped character
|
||||
(!short_cmd && qtype && *ptr == qtype && ptr[1] == qtype)) // quote
|
||||
/* if short_cmd use historical rules (only backslash) otherwise SQL rules */
|
||||
if (short_cmd
|
||||
? (*ptr == '\\' && ptr[1]) // escaped character
|
||||
: (*ptr == '\\' && ptr[1] && qtype != '`') || // escaped character
|
||||
(qtype && *ptr == qtype && ptr[1] == qtype)) // quote
|
||||
{
|
||||
// Remove (or skip) the backslash (or a second quote)
|
||||
if (mode != CHECK)
|
||||
|
Reference in New Issue
Block a user