summaryrefslogtreecommitdiff
path: root/mysql-test/main/func_json.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-08-03 10:47:52 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-08-03 12:19:59 +0200
commitd2f1c3ed6ccf823babf311970dfa0b7c57850db7 (patch)
tree7c3db13f204c0a0c08f48ddaa402e64a2e209192 /mysql-test/main/func_json.test
parent212994f704496d01881f377e34e04bd007e5e298 (diff)
parentaf143474d8925cdbcfc0795a2bc274cbeaad8889 (diff)
downloadmariadb-git-d2f1c3ed6ccf823babf311970dfa0b7c57850db7.tar.gz
Merge branch '10.5' into bb-10.6-release
Diffstat (limited to 'mysql-test/main/func_json.test')
-rw-r--r--mysql-test/main/func_json.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/main/func_json.test b/mysql-test/main/func_json.test
index 0b1fce3a509..9a31aa98919 100644
--- a/mysql-test/main/func_json.test
+++ b/mysql-test/main/func_json.test
@@ -614,6 +614,20 @@ SELECT JSON_VALID('{"admin\\"": null}'), '{"admin\\"": null}'
SELECT JSON_VALID('{"\\"": null}'), '{"\\"": null}';
--echo #
+--echo # MDEV-29188: Crash in JSON_EXTRACT
+--echo #
+
+CREATE TABLE t1 (j JSON);
+
+INSERT INTO t1 VALUES
+ ('{"ID": "4", "Name": "Betty", "Age": 19}'),
+ ('[10, 20, [30, 40]]');
+
+SELECT * FROM t1 WHERE JSON_EXTRACT(j, '$.Age')=19;
+
+drop table t1;
+
+--echo #
--echo # End of 10.3 tests
--echo #