1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

@ -34,6 +34,9 @@ NULL
select json_query('{"key1":123, "key1": [1,2,3]}', '$.key1');
json_query('{"key1":123, "key1": [1,2,3]}', '$.key1')
[1,2,3]
select json_array();
json_array()
[]
select json_array(1);
json_array(1)
[1]
@ -150,6 +153,9 @@ json_remove(@j, '$.b')
select json_remove(@j, '$.a');
json_remove(@j, '$.a')
{"b": [2, 3]}
select json_object();
json_object()
{}
select json_object("ki", 1, "mi", "ya");
json_object("ki", 1, "mi", "ya")
{"ki": 1, "mi": "ya"}