1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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.
This commit is contained in:
Alexey Botchkov
2017-05-02 15:16:01 +04:00
parent 42ad4f2821
commit 4a484e7a20
3 changed files with 10 additions and 0 deletions

View File

@@ -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