~ziminq/drizzle/filesystem-storage-engine

« back to all changes in this revision

Viewing changes to tests/r/func_math.result

  • Committer: Zimin
  • Date: 2010-07-26 07:05:51 UTC
  • mfrom: (1548.1.119 staging)
  • Revision ID: ziminq@gmail.com-20100726070551-wst7mob56ytim3bm
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
select abs(-2) * -2;
177
177
abs(-2) * -2
178
178
-4
179
 
CREATE TABLE t1 (a INT);
180
 
INSERT INTO t1 VALUES (1),(1),(1),(2);
181
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1;
182
 
RAND(2) * 1000  RAND(a) * 1000
183
 
655.586646549019        405.403537121977
184
 
122.346619258026        405.403537121977
185
 
644.97318737672 405.403537121977
186
 
857.826109843167        655.586646549019
187
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1 WHERE a = 1;
188
 
RAND(2) * 1000  RAND(a) * 1000
189
 
655.586646549019        405.403537121977
190
 
122.346619258026        405.403537121977
191
 
644.97318737672 405.403537121977
192
 
INSERT INTO t1 VALUES (3);
193
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1;
194
 
RAND(2) * 1000  RAND(a) * 1000
195
 
655.586646549019        405.403537121977
196
 
122.346619258026        405.403537121977
197
 
644.97318737672 405.403537121977
198
 
857.826109843167        655.586646549019
199
 
354.211017819318        905.76975597606
200
 
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1 WHERE a = 1;
201
 
RAND(2) * 1000  RAND(a) * 1000
202
 
655.586646549019        405.403537121977
203
 
122.346619258026        405.403537121977
204
 
644.97318737672 405.403537121977
205
 
DROP TABLE t1;
206
179
select round(111,-10);
207
180
round(111,-10)
208
181
0