~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/t/func_math.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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
 
explain extended select rand(999999),rand();
31
30
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
31
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);
33
32
select degrees(pi()),radians(360);
64
63
 
65
64
explain extended select degrees(pi()),radians(360);
66
65
 
67
 
#
68
 
# Bug #7281: problem with rand()
69
 
#
70
 
 
71
 
--error 1054
72
 
select rand(rand);
73
 
 
74
66
# End of 4.1 tests
75
67
 
76
68
#
106
98
#
107
99
select abs(-2) * -2;
108
100
 
109
 
#
110
 
# Bug #6172 RAND(a) should only accept constant values as arguments
111
 
#
112
 
CREATE TABLE t1 (a INT);
113
 
 
114
 
INSERT INTO t1 VALUES (1),(1),(1),(2);
115
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1;
116
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1 WHERE a = 1;
117
 
INSERT INTO t1 VALUES (3);
118
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1;
119
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1 WHERE a = 1;
120
 
 
121
 
DROP TABLE t1;  
122
 
 
123
101
# End of 4.1 tests
124
102
 
125
103
#