mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02: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:
parent
a77c2ea78f
commit
7c7c0696e7
6 changed files with 39 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue