summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-06-22 20:00:21 -0700
committerunknown <jimw@mysql.com>2005-06-22 20:00:21 -0700
commit5841d70af8ea31288398229926dd647a7bacd852 (patch)
tree9885afeafab52816111eb92fae2b101971f1d469 /mysql-test/r
parent31d07866873631f79177fb1277bacfec62062c80 (diff)
downloadmariadb-git-5841d70af8ea31288398229926dd647a7bacd852.tar.gz
Fix multiplication of abs() by a negative value. (Bug #11402)
mysql-test/r/func_math.result: Add new results mysql-test/t/func_math.test: Add new regression test sql/item_func.cc: Don't set result of abs() to unsigned. Result should still be a signed value, even if always positive.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/func_math.result3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result
index 9cb1e4a56d6..80b15d1d3c8 100644
--- a/mysql-test/r/func_math.result
+++ b/mysql-test/r/func_math.result
@@ -137,3 +137,6 @@ select * from t1;
round(1, 6)
1.000000
drop table t1;
+select abs(-2) * -2;
+abs(-2) * -2
+-4