mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-12364 Server crashes in __memcpy_sse2_unaligned / String::copy on
JSON_SEARCH with variables. Wrong index for the tmp_paths array in Item_func_json_search::val_str.
This commit is contained in:
@ -629,3 +629,7 @@ j p json_remove(j, p)
|
||||
{"a":1,"b":2,"c":3} $.b {"a": 1, "c": 3}
|
||||
{"a":1,"b":2,"c":3} $.c {"a": 1, "b": 2}
|
||||
drop table t1;
|
||||
SET @str = 'bar', @path = '$';
|
||||
SELECT JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path);
|
||||
JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path)
|
||||
"$.foo"
|
||||
|
Reference in New Issue
Block a user