summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2016-12-09 12:26:32 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2016-12-09 12:26:32 +0400
commit04aa31c70bf90d6a89833791547a082d82cb2365 (patch)
treea0b155cb5b2828c87786298778768c41744fe17c /unittest
parent0f7864a9b8ac04ea3e3b8e0637cc3a59520d7dfa (diff)
downloadmariadb-git-04aa31c70bf90d6a89833791547a082d82cb2365.tar.gz
MDEV-11469 JSON_SEARCH returns incorrect results.
Support for '**' in json path expressions added.
Diffstat (limited to 'unittest')
-rw-r--r--unittest/json_lib/json_lib-t.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittest/json_lib/json_lib-t.c b/unittest/json_lib/json_lib-t.c
index 49c8f7e34c2..11f02b204f8 100644
--- a/unittest/json_lib/json_lib-t.c
+++ b/unittest/json_lib/json_lib-t.c
@@ -117,11 +117,11 @@ test_path_parsing()
if (json_path_setup(&p, ci, s_e(p0)))
return;
ok(p.last_step - p.steps == 4 &&
- p.steps[0].type == JSON_PATH_ARRAY && p.steps[0].wild == 1 &&
- p.steps[1].type == JSON_PATH_KEY && p.steps[1].wild == 0 &&
+ p.steps[0].type == JSON_PATH_ARRAY_WILD &&
+ p.steps[1].type == JSON_PATH_KEY &&
p.steps[2].type == JSON_PATH_ARRAY && p.steps[2].n_item == 12 &&
- p.steps[3].type == JSON_PATH_KEY && p.steps[3].wild == 1 &&
- p.steps[4].type == JSON_PATH_ARRAY && p.steps[4].wild == 1,
+ p.steps[3].type == JSON_PATH_KEY_WILD &&
+ p.steps[4].type == JSON_PATH_ARRAY_WILD,
"path");
}