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

MDEV-11856 json_search doesn't search for values with double quotes

character (").

        The my_wildcmp function doesn't expect the string parameter to
        have escapements, only the template. So the string
        should be unescaped if necessary.
This commit is contained in:
Alexey Botchkov
2017-03-14 15:25:02 +04:00
parent a77c2ea78f
commit 7c7c0696e7
6 changed files with 39 additions and 4 deletions

View File

@@ -366,6 +366,7 @@ static int skip_str_constant(json_engine_t *j)
break;
if (j->s.c_next == '\\')
{
j->value_escaped= 1;
if (json_handle_esc(&j->s))
return 1;
continue;
@@ -394,6 +395,7 @@ static int read_strn(json_engine_t *j)
{
j->value= j->s.c_str;
j->value_type= JSON_VALUE_STRING;
j->value_escaped= 0;
if (skip_str_constant(j))
return 1;