summaryrefslogtreecommitdiff
path: root/mysql-test/main/func_json.result
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2023-03-31 21:32:41 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2023-03-31 21:32:41 +0200
commitac5a534a4caa6c86762e721dfe7183be2fee29ca (patch)
treea3d40e82beeef165e5965aec282a458b1febf23a /mysql-test/main/func_json.result
parente093e5abbed1a7883b8a78935c11505bd0bcb0d6 (diff)
parenteaebe8b5600b144c51a9405de42a70bd4b710987 (diff)
downloadmariadb-git-ac5a534a4caa6c86762e721dfe7183be2fee29ca.tar.gz
Merge remote-tracking branch '10.4' into 10.5
Diffstat (limited to 'mysql-test/main/func_json.result')
-rw-r--r--mysql-test/main/func_json.result7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/main/func_json.result b/mysql-test/main/func_json.result
index b9df193d3bd..44d50261de4 100644
--- a/mysql-test/main/func_json.result
+++ b/mysql-test/main/func_json.result
@@ -1449,6 +1449,13 @@ JSON_LOOSE(JSON_EXTRACT(a, '$**.analyzing_range_alternatives'))
[{"range_scan_alternatives": [{"index": "a_b", "ranges": ["2 <= a <= 2 AND 4 <= b <= 4", "123"], "rowid_ordered": true, "using_mrr": false, "index_only": true, "rows": 1, "cost": 1.1752, "chosen": true}], "analyzing_roworder_intersect": {"cause": "too few roworder scans"}, "analyzing_index_merge_union": [], "test_one_line_array": ["123"]}]
drop table t200;
#
+# MDEV-24538: JSON_LENGTH does not return error upon wrong number of parameters
+#
+SELECT JSON_LENGTH('{"a":"b"}','$','$', 'foo');
+ERROR 42000: Incorrect parameter count in the call to native function 'json_length'
+SELECT JSON_LENGTH();
+ERROR 42000: Incorrect parameter count in the call to native function 'JSON_LENGTH'
+#
# End of 10.4 tests
#
#