summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2020-06-15 22:51:21 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2020-06-15 22:51:21 +0400
commit6c573a9146caa76807db1190e0747f5befb5b170 (patch)
treea304df0f89fa87736623df6c313ff45fe093b526 /sql/item_sum.h
parent30d41c8102c36af7551b3ae77e48efbeb6d7ecea (diff)
downloadmariadb-git-6c573a9146caa76807db1190e0747f5befb5b170.tar.gz
MDEV-22844 JSON_ARRAYAGG is limited by group_concat_max_len.
Warning message and function result fixed
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 118b5b958f3..dc520ce2578 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -1941,6 +1941,8 @@ protected:
virtual String *get_str_from_field(Item *i, Field *f, String *tmp,
const uchar *key, size_t offset)
{ return f->val_str(tmp, key + offset); }
+ virtual void cut_max_length(String *result,
+ uint old_length, uint max_length) const;
public:
// Methods used by ColumnStore
bool get_distinct() const { return distinct; }