1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-12324 Wrong result (phantom array value) on JSON_EXTRACT.

Fixed the path comparison.
This commit is contained in:
Alexey Botchkov
2017-08-07 13:46:45 +04:00
parent 4ff6ebf76a
commit f701ac65e9
3 changed files with 13 additions and 1 deletions

View File

@ -296,3 +296,9 @@ INSERT INTO t1 VALUES (0);
SELECT JSON_KEYS(f) FROM t1 ORDER BY 1;
DROP TABLE t1;
#
# MDEV-12324 Wrong result (phantom array value) on JSON_EXTRACT.
#
SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*].*' );
SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*]' );