~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_math.test

  • Committer: Brian Aker
  • Date: 2009-08-21 18:46:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1123.
  • Revision ID: brian@gaz-20090821184631-e11gja79070fvhk4
Cleanup around page checksum removal

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
#
152
139
#
153
140
# Bug#16678 FORMAT gives wrong result if client run with default-character-set=utf8
154
141
#
155
 
create table t1
 
142
create TEMPORARY table t1
156
143
(f1 varchar(32) not null,
157
144
 f2 int not null,
158
145
 f3 int not null default '0')
159
146
engine=myisam;
160
147
insert into t1 values ('zombie',0,0),('gold',1,10000),('silver',2,10000);
161
148
 
162
 
create table t2
 
149
create TEMPORARY table t2
163
150
(f1 int not null,
164
151
 f2 int not null,
165
152
 f3 int not null)