diff --git a/sql/item_func.cc b/sql/item_func.cc index 89d5438..360f794 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -1424,7 +1424,7 @@ void Item_func_additive_op::result_precision() subtraction of UNSIGNED BIGINT to return negative values. */ -void Item_func_minus::fix_length_and_dec() +void Item_func_additive_op::fix_length_and_dec() { Item_num_op::fix_length_and_dec(); if (unsigned_flag && diff --git a/sql/item_func.h b/sql/item_func.h index bd2cc4e..05e357b 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -592,6 +592,7 @@ public: Item_func_additive_op(Item *a,Item *b) :Item_num_op(a,b) {} void result_precision(); bool check_partition_func_processor(uchar *int_arg) {return FALSE;} + void fix_length_and_dec(); }; @@ -613,7 +614,6 @@ public: longlong int_op(); double real_op(); my_decimal *decimal_op(my_decimal *); - void fix_length_and_dec(); };