diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2021-12-13 07:29:25 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2021-12-13 07:29:25 +0400 |
commit | 9bb8cb4d262956611b0cedf30325a571ec6710e5 (patch) | |
tree | 3be65eac4eef78f32e1aa6db36f963e780d79cce /unittest/json_lib/json_lib-t.c | |
parent | 5be1d7f2a070a697ad30e17678dbad7de117962c (diff) | |
download | mariadb-git-bb-10.8-mdev22224-hf.tar.gz |
MDEV-22224 Support JSON Path negative index.bb-10.8-mdev22224-hf
When we see the negative index in the path, we do extra parsing to
calculate the size of the array.
Diffstat (limited to 'unittest/json_lib/json_lib-t.c')
-rw-r--r-- | unittest/json_lib/json_lib-t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/json_lib/json_lib-t.c b/unittest/json_lib/json_lib-t.c index 378ebe201f5..c5a6df54e1d 100644 --- a/unittest/json_lib/json_lib-t.c +++ b/unittest/json_lib/json_lib-t.c @@ -140,7 +140,7 @@ test_search() json_path_t p; json_path_step_t *cur_step; int n_matches, scal_values; - uint array_counters[JSON_DEPTH_LIMIT]; + int array_counters[JSON_DEPTH_LIMIT]; if (json_scan_start(&je, ci, s_e(fj0)) || json_path_setup(&p, ci, s_e(fp0))) |