~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to tests/r/group_by.result

  • Committer: Jay Pipes
  • Date: 2009-08-03 14:23:22 UTC
  • mfrom: (1039.2.68 staging)
  • mto: This revision was merged to the branch mainline in revision 1078.
  • Revision ID: jpipes@serialcoder-20090803142322-1g67h7su9mocg9ig
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1394
1394
EXPLAIN SELECT 1 FROM t1 WHERE a IN
1395
1395
(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
1396
1396
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1397
 
1       PRIMARY t1      ALL     NULL    NULL    NULL    NULL    144     Start temporary
1398
 
1       PRIMARY t1      eq_ref  PRIMARY,i2      PRIMARY 4       test.t1.a       1       Using index; End temporary
 
1397
1       PRIMARY t1      index   NULL    PRIMARY 4       NULL    144     Using where; Using index
 
1398
2       SUBQUERY        t1      ALL     NULL    NULL    NULL    NULL    144     
1399
1399
CREATE TABLE t2 (a INT, b INT, KEY(a));
1400
1400
INSERT INTO t2 VALUES (1, 1), (2, 2), (3,3), (4,4);
1401
1401
EXPLAIN SELECT a, SUM(b) FROM t2 GROUP BY a LIMIT 2;
1407
1407
EXPLAIN SELECT 1 FROM t2 WHERE a IN
1408
1408
(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
1409
1409
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1410
 
1       PRIMARY t2      index   a       a       5       NULL    4       Using index; Start temporary
1411
 
1       PRIMARY t1      ALL     NULL    NULL    NULL    NULL    144     Using where; End temporary; Using join buffer
 
1410
1       PRIMARY t2      index   NULL    a       5       NULL    4       Using where; Using index
 
1411
2       SUBQUERY        t1      ALL     NULL    NULL    NULL    NULL    144     
1412
1412
DROP TABLE t1, t2;
1413
1413
CREATE TABLE t1(
1414
1414
a INT,