diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-08-07 13:46:45 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-08-07 13:46:45 +0400 |
commit | f701ac65e951d373f62322147c785370fe7e4e25 (patch) | |
tree | 4b931ce0773babaff43ed424bbbc9c916f822f1d /strings | |
parent | 4ff6ebf76af763f8e9e98b22773ac68cc2415aa1 (diff) | |
download | mariadb-git-f701ac65e951d373f62322147c785370fe7e4e25.tar.gz |
MDEV-12324 Wrong result (phantom array value) on JSON_EXTRACT.
Fixed the path comparison.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/json_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c index 0e2a17b0ae0..7167b6a2a54 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -1756,7 +1756,7 @@ int json_path_parts_compare( goto step_fits; goto step_failed; } - if (a->n_item == 0) + if ((a->type & JSON_PATH_WILD) == 0 && a->n_item == 0) goto step_fits_autowrap; goto step_failed; } |