1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fixed Bug #2338 Trigonometric arithmetic problem

by fixing optimizer bug with help of 'volatile' keyword
This commit is contained in:
vva@eagle.mysql.r18.ru
2004-01-12 22:47:26 -04:00
parent 8a409722a0
commit d7f6ced155
3 changed files with 27 additions and 2 deletions

View File

@ -13,3 +13,14 @@ select pow(10,log10(10)),power(2,4);
select rand(999999),rand();
select pi(),sin(pi()/2),cos(pi()/2),abs(tan(pi())),cot(1),asin(1),acos(0),atan(1);
select degrees(pi()),radians(360);
#
# Bug #2338 Trignometric arithmatic problems
#
SELECT ACOS(1.0);
SELECT ASIN(1.0);
SELECT ACOS(0.2*5.0);
SELECT ACOS(0.5*2.0);
SELECT ASIN(0.8+0.2);
SELECT ASIN(1.2-0.2);