From 47b044f41114cbbfd216030269f7a0380a502050 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Oct 2005 17:00:42 -0700 Subject: Fix Item_func_abs::fix_length_and_dec() to set maybe_null properly. (Bug #14009) mysql-test/r/func_math.result: Add new results mysql-test/t/func_math.test: Add new regression test sql/item_func.cc: Set maybe_null in Item_func_abs::fix_length_and_dec(). --- sql/item_func.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/item_func.cc') diff --git a/sql/item_func.cc b/sql/item_func.cc index 288859443ff..5a70e6ba89b 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -766,6 +766,7 @@ void Item_func_abs::fix_length_and_dec() hybrid_type= REAL_RESULT; if (args[0]->result_type() == INT_RESULT) hybrid_type= INT_RESULT; + maybe_null= 1; } -- cgit v1.2.1