1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-11471 JSON_ARRAY_APPEND returns incorrect results.

Item_func_json_array_append::val_str fixed.
This commit is contained in:
Alexey Botchkov
2016-12-05 08:43:15 +04:00
parent abb80d25f4
commit fe6d0a0719
3 changed files with 93 additions and 28 deletions

View File

@ -21,6 +21,7 @@ select json_array(1, "text", false, null);
select json_array_append('["a", "b"]', '$', FALSE);
select json_array_append('{"k1":1, "k2":["a", "b"]}', '$.k2', 2);
select json_array_append('["a", ["b", "c"], "d"]', '$[0]', 2);
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1]', 'x');
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2]', 'x');