~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_math.test

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

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();
30
32
explain extended select rand(999999),rand();
31
33
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);
32
34
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);
96
98
#
97
99
 
98
100
create table t1 select round(1, 6);
99
 
--replace_regex /ENGINE=[a-z]*/ENGINE=X/i
100
101
show create table t1;
101
102
select * from t1;
102
103
drop table t1;
120
121
 
121
122
DROP TABLE t1;  
122
123
 
 
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
 
123
136
# End of 4.1 tests
124
137
 
125
138
#
139
152
#
140
153
# Bug#16678 FORMAT gives wrong result if client run with default-character-set=utf8
141
154
#
142
 
create TEMPORARY table t1
 
155
create table t1
143
156
(f1 varchar(32) not null,
144
157
 f2 int not null,
145
158
 f3 int not null default '0')
146
159
engine=myisam;
147
160
insert into t1 values ('zombie',0,0),('gold',1,10000),('silver',2,10000);
148
161
 
149
 
create TEMPORARY table t2
 
162
create table t2
150
163
(f1 int not null,
151
164
 f2 int not null,
152
165
 f3 int not null)