1
0
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:
Alexey Botchkov
2016-12-11 01:12:33 +04:00
parent c868acdf65
commit 9320d8ae30
6 changed files with 237 additions and 92 deletions

View File

@ -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;