summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_json.test
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-08-07 13:46:45 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-08-07 13:46:45 +0400
commitf701ac65e951d373f62322147c785370fe7e4e25 (patch)
tree4b931ce0773babaff43ed424bbbc9c916f822f1d /mysql-test/t/func_json.test
parent4ff6ebf76af763f8e9e98b22773ac68cc2415aa1 (diff)
downloadmariadb-git-f701ac65e951d373f62322147c785370fe7e4e25.tar.gz
MDEV-12324 Wrong result (phantom array value) on JSON_EXTRACT.
Fixed the path comparison.
Diffstat (limited to 'mysql-test/t/func_json.test')
-rw-r--r--mysql-test/t/func_json.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test
index 0fc8e97b284..0ce742aac11 100644
--- a/mysql-test/t/func_json.test
+++ b/mysql-test/t/func_json.test
@@ -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"}', '$[*]' );
+