Merge mysql.com:/home/jimw/my/mysql-4.1-11402
into mysql.com:/home/jimw/my/mysql-4.1-clean
This commit is contained in:
commit
c3e40306b7
@ -137,3 +137,6 @@ select * from t1;
|
|||||||
round(1, 6)
|
round(1, 6)
|
||||||
1.000000
|
1.000000
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
select abs(-2) * -2;
|
||||||
|
abs(-2) * -2
|
||||||
|
-4
|
||||||
|
@ -72,4 +72,9 @@ show create table t1;
|
|||||||
select * from t1;
|
select * from t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #11402: abs() forces rest of calculation to unsigned
|
||||||
|
#
|
||||||
|
select abs(-2) * -2;
|
||||||
|
|
||||||
# End of 4.1 tests
|
# End of 4.1 tests
|
||||||
|
@ -765,10 +765,7 @@ void Item_func_abs::fix_length_and_dec()
|
|||||||
max_length=args[0]->max_length;
|
max_length=args[0]->max_length;
|
||||||
hybrid_type= REAL_RESULT;
|
hybrid_type= REAL_RESULT;
|
||||||
if (args[0]->result_type() == INT_RESULT)
|
if (args[0]->result_type() == INT_RESULT)
|
||||||
{
|
|
||||||
hybrid_type= INT_RESULT;
|
hybrid_type= INT_RESULT;
|
||||||
unsigned_flag= 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user