diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-03 11:45:24 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-03 11:45:24 +0400 |
commit | a8467e2fab03d8f46b07b1f632a08df27d6ff038 (patch) | |
tree | 3d6b99d71b15f11881a77922405608a0be8f3228 /mysql-test/r | |
parent | eca15790514f5907add11fff6c91e68d92fbde64 (diff) | |
download | mariadb-git-a8467e2fab03d8f46b07b1f632a08df27d6ff038.tar.gz |
MDEV-11449 Server crashes in Item_func_or_sum::agg_item_collations.
JSON_ARRAY didn't expect 0 arguments.
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/func_json.result | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result index 4e03a867d8d..c7e6e2f7374 100644 --- a/mysql-test/r/func_json.result +++ b/mysql-test/r/func_json.result @@ -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"} |