1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fix multiplication of abs() by a negative value. (Bug #11402)

This commit is contained in:
jimw@mysql.com
2005-06-22 20:00:21 -07:00
parent 53761ce08f
commit 1fa7b95d98
3 changed files with 8 additions and 3 deletions

View File

@ -71,3 +71,8 @@ create table t1 select round(1, 6);
show create table t1;
select * from t1;
drop table t1;
#
# Bug #11402: abs() forces rest of calculation to unsigned
#
select abs(-2) * -2;