1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-11449 Server crashes in Item_func_or_sum::agg_item_collations.

JSON_ARRAY didn't expect 0 arguments.
This commit is contained in:
Alexey Botchkov
2016-12-03 11:45:24 +04:00
parent eca1579051
commit a8467e2fab
3 changed files with 16 additions and 0 deletions

View File

@ -13,6 +13,7 @@ select json_query('{"key1":{"a":1, "b":[1,2]}}', '$.key1');
select json_query('{"key1": 1}', '$.key1');
select json_query('{"key1":123, "key1": [1,2,3]}', '$.key1');
select json_array();
select json_array(1);
select json_array(1, "text", false, null);
@ -63,6 +64,7 @@ set @j = '{"a": 1, "b": [2, 3]}';
select json_remove(@j, '$.b');
select json_remove(@j, '$.a');
select json_object();
select json_object("ki", 1, "mi", "ya");
select json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2");