summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-03-19 23:39:42 +0400
committerAlexander Barkov <bar@mariadb.org>2017-03-19 23:39:42 +0400
commit552072e4d11c97e5d5c9a34aefcb052791209865 (patch)
treeedd32e09988d6625f693ddd653b9e7d9975bcdcb /sql/item_sum.h
parent7d0c354f5c354b45f9d9dadf2ff5ea02ba0b1071 (diff)
downloadmariadb-git-552072e4d11c97e5d5c9a34aefcb052791209865.tar.gz
MDEV-12239 Add Type_handler::Item_sum_{sum|avg|variance}_fix_length_and_dec()
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 67e97b152bd..3ceb2a04dcc 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -790,6 +790,8 @@ public:
{ return Type_handler_hybrid_field_type::result_type(); }
enum Item_result cmp_type () const
{ return Type_handler_hybrid_field_type::cmp_type(); }
+ void fix_length_and_dec_double();
+ void fix_length_and_dec_decimal();
void reset_field();
void update_field();
void no_rows_in_result() {}
@@ -889,6 +891,8 @@ public:
:Item_sum_sum(thd, item), count(item->count),
prec_increment(item->prec_increment) {}
+ void fix_length_and_dec_double();
+ void fix_length_and_dec_decimal();
void fix_length_and_dec();
enum Sumfunctype sum_func () const
{
@@ -963,6 +967,8 @@ public:
{}
Item_sum_variance(THD *thd, Item_sum_variance *item);
enum Sumfunctype sum_func () const { return VARIANCE_FUNC; }
+ void fix_length_and_dec_double();
+ void fix_length_and_dec_decimal();
void clear();
bool add();
double val_real();