mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed Bug #2338 Trigonometric arithmetic problem
by fixing optimizer bug with help of 'volatile' keyword
This commit is contained in:
@@ -20,3 +20,15 @@ PI() sin(pi()/2) cos(pi()/2) abs(tan(pi())) cot(1) asin(1) acos(0) atan(1)
|
||||
3.141593 1.000000 0.000000 0.000000 0.64209262 1.570796 1.570796 0.785398
|
||||
degrees(pi()) radians(360)
|
||||
180 6.2831853071796
|
||||
ACOS(1.0)
|
||||
0.000000
|
||||
ASIN(1.0)
|
||||
1.570796
|
||||
ACOS(0.2*5.0)
|
||||
0.000000
|
||||
ACOS(0.5*2.0)
|
||||
0.000000
|
||||
ASIN(0.8+0.2)
|
||||
1.570796
|
||||
ASIN(1.2-0.2)
|
||||
1.570796
|
||||
|
||||
Reference in New Issue
Block a user