mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-11453 JSON_CONTAINS returns incorrect values.
The weird logic of json_contains was implemented.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user