~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_math.test

Finished first pass at Protocol cleanup, still some things to remove but they are a bit more involved.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
explain extended select log10(100),log10(18),log10(-4),log10(0),log10(NULL);
28
28
select pow(10,log10(10)),power(2,4);
29
29
explain extended select pow(10,log10(10)),power(2,4);
30
 
set @@rand_seed1=10000000,@@rand_seed2=1000000;
31
 
select rand(999999),rand();
32
30
explain extended select rand(999999),rand();
33
31
select pi(),format(sin(pi()/2),6),format(cos(pi()/2),6),format(abs(tan(pi())),6),format(cot(1),6),format(asin(1),6),format(acos(0),6),format(atan(1),6);
34
32
explain extended select pi(),format(sin(pi()/2),6),format(cos(pi()/2),6),format(abs(tan(pi())),6),format(cot(1),6),format(asin(1),6),format(acos(0),6),format(atan(1),6);
98
96
#
99
97
 
100
98
create table t1 select round(1, 6);
 
99
--replace_regex /ENGINE=[a-z]*/ENGINE=X/i
101
100
show create table t1;
102
101
select * from t1;
103
102
drop table t1;
121
120
 
122
121
DROP TABLE t1;  
123
122
 
124
 
#
125
 
# Bug #14009: use of abs() on null value causes problems with filesort
126
 
#
127
 
# InnoDB is required to reproduce the fault, but it is okay if we default to
128
 
# MyISAM when testing.
129
 
--disable_warnings
130
 
create table t1 (a varchar(90), ts datetime not null, index (a)) engine=innodb;
131
 
--enable_warnings
132
 
insert into t1 values ('http://www.foo.com/', now());
133
 
select a from t1 where a='http://www.foo.com/' order by abs(timediff(ts, 0));
134
 
drop table t1;
135
 
 
136
123
# End of 4.1 tests
137
124
 
138
125
#