~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_in.result

  • Committer: Patrick Galbraith
  • Date: 2009-10-08 22:42:05 UTC
  • mto: (1166.5.3 memcached_functions)
  • mto: This revision was merged to the branch mainline in revision 1189.
  • Revision ID: patg@patrick-galbraiths-macbook-pro.local-20091008224205-gq1pehjsivvx0qo9
Starting over with a fresh tree, moved in memcached functions.

Memcached Functions for Drizzle. 

All tests pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
'2006-04-25 10:00:00','2006-04-25 10:02:00','2006-04-25 10:04:00', 
255
255
'2006-04-25 10:06:00', '2006-04-25 10:08:00');
256
256
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
257
 
1       SIMPLE  t2      range   a       a       9       NULL    11      Using where
 
257
1       SIMPLE  t2      range   a       a       9       NULL    20      Using where
258
258
select * from t2 where a NOT IN (
259
259
'2006-04-25 10:00:00','2006-04-25 10:02:00','2006-04-25 10:04:00', 
260
260
'2006-04-25 10:06:00', '2006-04-25 10:08:00');
349
349
JOIN t2 ON t3.a=t2.a
350
350
JOIN t4 WHERE t4.a IN (t1.b, t2.b);
351
351
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
352
1       SIMPLE  t3      index   PRIMARY PRIMARY 4       NULL    4       Using index
352
353
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t3.a       1       
353
354
1       SIMPLE  t2      ALL     PRIMARY NULL    NULL    NULL    5       Using where; Using join buffer
354
 
1       SIMPLE  t3      index   PRIMARY PRIMARY 4       NULL    4       Using index
355
355
1       SIMPLE  t4      ALL     PRIMARY NULL    NULL    NULL    7       Range checked for each record (index map: 0x1)
356
356
SELECT STRAIGHT_JOIN * FROM t3 
357
357
JOIN t1 ON t3.a=t1.a 
367
367
FROM t3, t1, t2
368
368
WHERE t3.a=t1.a AND t3.a=t2.a;
369
369
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
370
1       PRIMARY t3      index   PRIMARY PRIMARY 4       NULL    4       Using index
370
371
1       PRIMARY t1      eq_ref  PRIMARY PRIMARY 4       test.t3.a       1       
371
372
1       PRIMARY t2      ALL     PRIMARY NULL    NULL    NULL    5       Using where; Using join buffer
372
 
1       PRIMARY t3      index   PRIMARY PRIMARY 4       NULL    4       Using index
373
373
2       DEPENDENT SUBQUERY      t4      index   NULL    PRIMARY 4       NULL    7       Using where; Using index
374
374
SELECT STRAIGHT_JOIN 
375
375
(SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b)) 
457
457
CREATE TABLE t1 (id int not null);
458
458
INSERT INTO t1 VALUES (1),(2);
459
459
SELECT id FROM t1 WHERE id IN(4564, (SELECT IF(1=0,1,1/0)) );
460
 
ERROR 22012: Division by 0
 
460
id
 
461
Warnings:
 
462
Error   1365    Division by 0
 
463
Error   1365    Division by 0
461
464
DROP TABLE t1;
462
465
End of 5.0 tests
463
466
create TEMPORARY table t1(f1 char(1)) ENGINE=MYISAM;