diff options
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 5476ddd9151..a36bf4c140b 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -3652,14 +3652,6 @@ int dump_leaf_key(void* key_arg, element_count count __attribute__((unused)), if (item->limit_clause && !(*row_limit)) return 1; - if (item->sum_func() == Item_sum::JSON_ARRAYAGG_FUNC && - item->arg_count_field > 1) - { - /* JSON_ARRAYAGG supports only one parameter */ - my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), "JSON_ARRAYAGG"); - return 1; - } - if (item->no_appended) item->no_appended= FALSE; else |