summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-10-17 17:00:42 -0700
committerunknown <jimw@mysql.com>2005-10-17 17:00:42 -0700
commit47b044f41114cbbfd216030269f7a0380a502050 (patch)
tree404c928098c8c53ae1ac5024713ab552fbdaeec9 /sql/item_func.cc
parent3867a5db376cf225403116c26eaa8c73e4c9b359 (diff)
downloadmariadb-git-47b044f41114cbbfd216030269f7a0380a502050.tar.gz
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().
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc1
1 files changed, 1 insertions, 0 deletions
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;
}