summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-09 09:00:17 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-09 09:00:17 +0400
commit2dac1235150681433bdf6480e479e2f787b40f8b (patch)
treee40be99b51aaadb74917e7b02b80ab0525d54613 /sql/item_sum.h
parentc3d67c17c150b06f79f2d4935933ebb6ecc4f644 (diff)
downloadmariadb-git-2dac1235150681433bdf6480e479e2f787b40f8b.tar.gz
A cleanup for `MDEV-20273 Add class Item_sum_min_max` - removing duplicate code
Reusing the MIN()/MAX() fix_length_and_dec() related code for window functions - FIRST_VALUE() - LAST_VALUE() - NTH_VALUE() - LEAD() - LAG
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index df37d0dbfa4..a3e10c25763 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -1044,6 +1044,9 @@ public:
{ }
const Type_handler *type_handler() const
{ return Type_handler_hybrid_field_type::type_handler(); }
+ bool fix_length_and_dec_generic();
+ bool fix_length_and_dec_numeric(const Type_handler *h);
+ bool fix_length_and_dec_string();
};