summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_json.result
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-05-02 15:16:01 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-05-02 15:16:01 +0400
commit4a484e7a207f927089893a0344afa15031803e5d (patch)
tree3a185aa2e7328f78e39dac60566e150ceb04fad4 /mysql-test/r/func_json.result
parent42ad4f2821112be4e7bb4ca6d407cc72f9df6f8d (diff)
downloadmariadb-git-4a484e7a207f927089893a0344afa15031803e5d.tar.gz
MDEV-12351 Assertion `cur_step->type & JSON_PATH_KEY' failed in
json_find_path. The ..[0] path can be treated wrong on second json_find_path call.
Diffstat (limited to 'mysql-test/r/func_json.result')
-rw-r--r--mysql-test/r/func_json.result3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result
index cc682a0756d..a0a81914e98 100644
--- a/mysql-test/r/func_json.result
+++ b/mysql-test/r/func_json.result
@@ -633,3 +633,6 @@ SET @str = 'bar', @path = '$';
SELECT JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path);
JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path)
"$.foo"
+SELECT JSON_VALUE('[{"foo": 1},"bar"]', '$[*][0]');
+JSON_VALUE('[{"foo": 1},"bar"]', '$[*][0]')
+bar