summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2019-10-14 14:24:22 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2019-10-14 14:24:22 +0400
commitba8e5e689c8a1756573c9cbf6a59e9ec32d86457 (patch)
tree28767f4bb6609bea651a179da5214129438f0be7 /sql/item_sum.cc
parentb1c2c4ee1b246144033c95d849d59ed0a1192829 (diff)
downloadmariadb-git-ba8e5e689c8a1756573c9cbf6a59e9ec32d86457.tar.gz
MDEV-16620 JSON_ARRAYAGG and JSON_OBJECTAGG.
Ison_objectagg implemented.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc8
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