~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_math.result

  • Committer: Stewart Smith
  • Date: 2010-06-04 09:14:27 UTC
  • mto: (1666.2.3 build)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: stewart@flamingspork.com-20100604091427-2boz4wt5onz9cxvc
move RAND() tests from func_math into rand_function/tests/ - there's a lot of them (not).

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
96
96
Warnings:
97
97
Note    1003    select pow(10,log10(10)) AS `pow(10,log10(10))`,pow(2,4) AS `power(2,4)`
98
 
explain extended select rand(999999),rand();
99
 
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
100
 
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
101
 
Warnings:
102
 
Note    1003    select rand(999999) AS `rand(999999)`,rand() AS `rand()`
103
98
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);
104
99
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)
105
100
3.141593        1.000000        0.000000        0.000000        0.642093        1.570796        1.570796        0.785398
149
144
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
150
145
Warnings:
151
146
Note    1003    select degrees(pi()) AS `degrees(pi())`,radians(360) AS `radians(360)`
152
 
select rand(rand);
153
 
ERROR 42S22: Unknown column 'rand' in 'field list'
154
147
create table t1 (col1 int, col2 decimal(60,30));
155
148
insert into t1 values(1,1234567890.12345);
156
149
select format(col2,7) from t1;