mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
MDEV-12351 Assertion `cur_step->type & JSON_PATH_KEY' failed in
json_find_path.
The ..[0] path can be treated wrong on second json_find_path
call.
This commit is contained in:
parent
42ad4f2821
commit
4a484e7a20
3 changed files with 10 additions and 0 deletions
|
|
@ -1248,6 +1248,7 @@ static int handle_match(json_engine_t *je, json_path_t *p,
|
|||
if (++next_step > p->last_step)
|
||||
{
|
||||
je->s.c_str= je->value_begin;
|
||||
je->stack_p--;
|
||||
return 1;
|
||||
}
|
||||
} while (next_step->type == JSON_PATH_ARRAY && next_step->n_item == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue