1
0
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:
Alexey Botchkov
2017-05-02 14:28:57 +04:00
parent 7afcee4cf6
commit 42ad4f2821
3 changed files with 12 additions and 1 deletions

View File

@ -274,3 +274,10 @@ insert into t1 values
('{"a":1,"b":2,"c":3}','$.c');
select j, p, json_remove(j, p) from t1;
drop table t1;
#
# MDEV-12364 Server crashes in __memcpy_sse2_unaligned / String::copy on JSON_SEARCH with variables.
#
SET @str = 'bar', @path = '$';
SELECT JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path);