diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-05-02 15:16:01 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-05-02 15:16:01 +0400 |
commit | 4a484e7a207f927089893a0344afa15031803e5d (patch) | |
tree | 3a185aa2e7328f78e39dac60566e150ceb04fad4 /mysql-test/r/func_json.result | |
parent | 42ad4f2821112be4e7bb4ca6d407cc72f9df6f8d (diff) | |
download | mariadb-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.result | 3 |
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 |