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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user