17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32
25
Set precision of results for additive operations (+ and -)
34
27
void Item_func_additive_op::result_precision()
38
31
args[1]->decimal_precision() - args[1]->decimals);
41
34
/* Integer operations keep unsigned_flag if one of arguments is unsigned */
42
35
if (result_type() == INT_RESULT)
43
36
unsigned_flag= args[0]->unsigned_flag | args[1]->unsigned_flag;
45
38
unsigned_flag= args[0]->unsigned_flag & args[1]->unsigned_flag;
47
39
max_length= my_decimal_precision_to_length(precision, decimals,