~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/r/distinct.result

  • Committer: paul-mccullagh
  • Date: 2008-03-10 11:36:34 UTC
  • Revision ID: paul-mccullagh-417ebf175a9c8ee6e5b3777d9e2398e1fb197391
Implemented full durability

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
176
176
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    4       Using temporary
177
177
1       SIMPLE  t3      ref     a       a       5       test.t1.b       2       Using where; Using index
178
 
1       SIMPLE  t2      index   a       a       4       NULL    5       Using where; Using index; Distinct
 
178
1       SIMPLE  t2      index   a       a       4       NULL    5       Using where; Using index; Distinct; Using join buffer
179
179
SELECT distinct t3.a FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a;
180
180
a
181
181
1
300
300
AND ((t1.id=j_lj_t3.id AND t3_lj.id IS NULL) OR (t1.id=t3.id AND t3.idx=2));
301
301
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
302
302
1       SIMPLE  t1      index   id      id      4       NULL    2       Using index; Using temporary
303
 
1       SIMPLE  t2      index   id      id      8       NULL    1       Using index; Distinct
304
 
1       SIMPLE  t3      index   id      id      8       NULL    1       Using index; Distinct
305
 
1       SIMPLE  j_lj_t2 index   id      id      4       NULL    2       Using where; Using index; Distinct
 
303
1       SIMPLE  t2      index   id      id      8       NULL    1       Using index; Distinct; Using join buffer
 
304
1       SIMPLE  t3      index   id      id      8       NULL    1       Using index; Distinct; Using join buffer
 
305
1       SIMPLE  j_lj_t2 index   id      id      4       NULL    2       Using where; Using index; Distinct; Using join buffer
306
306
1       SIMPLE  t2_lj   ref     id      id      4       test.j_lj_t2.id 1       Using where; Using index; Distinct
307
 
1       SIMPLE  j_lj_t3 index   id      id      4       NULL    2       Using where; Using index; Distinct
 
307
1       SIMPLE  j_lj_t3 index   id      id      4       NULL    2       Using where; Using index; Distinct; Using join buffer
308
308
1       SIMPLE  t3_lj   ref     id      id      4       test.j_lj_t3.id 1       Using where; Using index; Distinct
309
309
SELECT DISTINCT
310
310
t1.id
515
515
EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2;
516
516
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
517
517
1       SIMPLE  t1_1    ALL     NULL    NULL    NULL    NULL    3       Using temporary
518
 
1       SIMPLE  t1_2    index   NULL    PRIMARY 4       NULL    3       Using index; Distinct
 
518
1       SIMPLE  t1_2    index   NULL    PRIMARY 4       NULL    3       Using index; Distinct; Using join buffer
519
519
EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2
520
520
WHERE t1_1.a = t1_2.a;
521
521
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
632
632
WHERE ADDDATE(a,1) = '2002-08-03');
633
633
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
634
634
1       PRIMARY NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
635
 
2       SUBQUERY        t1      ALL     NULL    NULL    NULL    NULL    2       Using where; Using temporary
 
635
2       SUBQUERY        t1      ALL     NULL    NULL    NULL    NULL    2       Using where
636
636
CREATE TABLE t2 (a CHAR(5) CHARACTER SET latin1 COLLATE latin1_general_ci);
637
637
INSERT INTO t2 VALUES (0xf6);
638
638
INSERT INTO t2 VALUES ('oe');