mirror of
https://github.com/MariaDB/server.git
synced 2026-05-11 17:40:11 +02:00
MDEV-11453 JSON_CONTAINS returns incorrect values.
The weird logic of json_contains was implemented.
This commit is contained in:
parent
c868acdf65
commit
9320d8ae30
6 changed files with 237 additions and 92 deletions
|
|
@ -1182,6 +1182,13 @@ int json_skip_level(json_engine_t *j)
|
|||
|
||||
int json_skip_key(json_engine_t *j)
|
||||
{
|
||||
if (j->state == JST_KEY)
|
||||
{
|
||||
while (json_read_keyname_chr(j) == 0);
|
||||
if (j->s.error)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (json_read_value(j))
|
||||
return 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue