mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
d576cd65d0
LOCATE() is now case sensitive BUILD/compile-alpha-cxx: Don't build manager because it fails with linker error on Linux Alpha Docs/manual.texi: Changelog myisam/mi_check.c: Fix bug when repairing compressed MyISAM files myisam/mi_open.c: Fix bug when repairing compressed MyISAM files myisam/mi_packrec.c: Fix bug when repairing compressed MyISAM files myisam/myisamchk.c: Fix bug when repairing compressed MyISAM files myisam/myisamdef.h: Fix bug when repairing compressed MyISAM files mysql-test/r/func_group.result: Fix result for new RND function mysql-test/r/func_math.result: Fix result for new RND function mysql-test/r/func_str.result: test of new locate() mysql-test/t/func_str.test: test of new locate() sql/item_func.cc: LOCATE() is now case sensitive sql/sql_string.cc: LOCATE() is now case sensitive sql/sql_string.h: LOCATE() is now case sensitive
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
select floor(5.5),floor(-5.5);
|
|
floor(5.5) floor(-5.5)
|
|
5 -6
|
|
select ceiling(5.5),ceiling(-5.5);
|
|
ceiling(5.5) ceiling(-5.5)
|
|
6 -5
|
|
select truncate(52.64,1),truncate(52.64,2),truncate(52.64,-1),truncate(52.64,-2);
|
|
truncate(52.64,1) truncate(52.64,2) truncate(52.64,-1) truncate(52.64,-2)
|
|
52.6 52.64 50 0
|
|
select round(5.5),round(-5.5);
|
|
round(5.5) round(-5.5)
|
|
6 -6
|
|
select round(5.64,1),round(5.64,2),round(5.64,-1),round(5.64,-2);
|
|
round(5.64,1) round(5.64,2) round(5.64,-1) round(5.64,-2)
|
|
5.6 5.64 10 0
|
|
select abs(-10), sign(-5), sign(5), sign(0);
|
|
abs(-10) sign(-5) sign(5) sign(0)
|
|
10 -1 1 0
|
|
select log(exp(10)),exp(log(sqrt(10))*2);
|
|
log(exp(10)) exp(log(sqrt(10))*2)
|
|
10.000000 10.000000
|
|
select pow(10,log10(10)),power(2,4);
|
|
pow(10,log10(10)) power(2,4)
|
|
10.000000 16.000000
|
|
select rand(999999),rand();
|
|
rand(999999) rand()
|
|
0.014231365187309 0.8078568166195
|
|
select pi(),sin(pi()/2),cos(pi()/2),abs(tan(pi())),cot(1),asin(1),acos(0),atan(1);
|
|
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
|
|
select degrees(pi()),radians(360);
|
|
degrees(pi()) radians(360)
|
|
180 6.2831853071796
|