~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_in.test

  • Committer: Andrew Hutchings
  • Date: 2011-01-21 11:23:19 UTC
  • mto: (2100.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2101.
  • Revision ID: andrew@linuxjedi.co.uk-20110121112319-nj1cvg0yt3nnf2rr
Add errors page to drizzle client docs
Add link to specific error in migration docs
Minor changes to migration docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
INSERT INTO t4 VALUES (1,1),(2,2),(1000,1000),(1001,1001),(1002,1002),
263
263
       (1003,1003),(1004,1004);
264
264
 
 
265
--sorted_result
265
266
EXPLAIN SELECT STRAIGHT_JOIN * FROM t3 
266
267
  JOIN t1 ON t3.a=t1.a 
267
268
  JOIN t2 ON t3.a=t2.a
272
273
  JOIN t2 ON t3.a=t2.a
273
274
  JOIN t4 WHERE t4.a IN (t1.b, t2.b);
274
275
 
 
276
--sorted_result
275
277
EXPLAIN SELECT STRAIGHT_JOIN 
276
278
   (SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b)) 
277
279
  FROM t3, t1, t2
293
295
SELECT * FROM t1 WHERE a=-1 OR a=-2 ;
294
296
SELECT * FROM t1 WHERE a IN (-1, -2);
295
297
 
296
 
CREATE TABLE t2 (a BIGINT);
 
298
CREATE TABLE t2 (a BIGINT UNSIGNED);
297
299
insert into t2 values(13491727406643098568),
298
300
       (0x0fffffefffffffff),
299
301
       (0x0ffffffeffffffff),
360
362
CREATE TABLE t1 (id int not null);
361
363
INSERT INTO t1 VALUES (1),(2);
362
364
 
 
365
--error ER_DIVISION_BY_ZERO
363
366
SELECT id FROM t1 WHERE id IN(4564, (SELECT IF(1=0,1,1/0)) );
364
367
 
365
368
DROP TABLE t1;