1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -642,3 +642,9 @@ SELECT JSON_KEYS(f) FROM t1 ORDER BY 1;
JSON_KEYS(f)
NULL
DROP TABLE t1;
SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*].*' );
JSON_EXTRACT( '{"foo":"bar"}', '$[*].*' )
NULL
SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*]' );
JSON_EXTRACT( '{"foo":"bar"}', '$[*]' )
NULL