~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/myisam.result

  • Committer: Brian Aker
  • Date: 2009-08-24 19:19:39 UTC
  • mfrom: (1121.1.6 merge)
  • Revision ID: brian@gaz-20090824191939-xcn528r7gwjc48h3
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
INSERT into t2 values (1,1,1), (2,2,2);
317
317
optimize table t1;
318
318
Table   Op      Msg_type        Msg_text
319
 
test.t1 optimize        status  OK
 
319
test.t1 optimize        note    The storage engine for the table doesn't support optimize
320
320
show index from t1;
321
321
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
322
 
t1      1       b       1       b       A       5       NULL    NULL    YES     BTREE           
323
 
t1      1       c       1       c       A       5       NULL    NULL    YES     BTREE           
324
 
t1      1       a       1       a       A       1       NULL    NULL            BTREE           
325
 
t1      1       a       2       b       A       5       NULL    NULL    YES     BTREE           
326
 
t1      1       c_2     1       c       A       5       NULL    NULL    YES     BTREE           
327
 
t1      1       c_2     2       a       A       5       NULL    NULL            BTREE           
 
322
t1      1       b       1       b       A       NULL    NULL    NULL    YES     BTREE           
 
323
t1      1       c       1       c       A       NULL    NULL    NULL    YES     BTREE           
 
324
t1      1       a       1       a       A       NULL    NULL    NULL            BTREE           
 
325
t1      1       a       2       b       A       NULL    NULL    NULL    YES     BTREE           
 
326
t1      1       c_2     1       c       A       NULL    NULL    NULL    YES     BTREE           
 
327
t1      1       c_2     2       a       A       NULL    NULL    NULL            BTREE           
328
328
explain select * from t1,t2 where t1.a=t2.a;
329
329
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
330
330
1       SIMPLE  t2      ALL     a       NULL    NULL    NULL    2       
331
 
1       SIMPLE  t1      ALL     a       NULL    NULL    NULL    5       Using where; Using join buffer
 
331
1       SIMPLE  t1      ref     a       a       4       test.t2.a       1       
332
332
explain select * from t1,t2 force index(a) where t1.a=t2.a;
333
333
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
334
334
1       SIMPLE  t2      ALL     a       NULL    NULL    NULL    2       
335
 
1       SIMPLE  t1      ALL     a       NULL    NULL    NULL    5       Using where; Using join buffer
 
335
1       SIMPLE  t1      ref     a       a       4       test.t2.a       1       
336
336
explain select * from t1 force index(a),t2 force index(a) where t1.a=t2.a;
337
337
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
338
338
1       SIMPLE  t2      ALL     a       NULL    NULL    NULL    2       
339
 
1       SIMPLE  t1      ref     a       a       4       test.t2.a       3       
 
339
1       SIMPLE  t1      ref     a       a       4       test.t2.a       1       
340
340
explain select * from t1,t2 where t1.b=t2.b;
341
341
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
342
342
1       SIMPLE  t2      ALL     b       NULL    NULL    NULL    2       
343
 
1       SIMPLE  t1      ref     b       b       5       test.t2.b       1       
 
343
1       SIMPLE  t1      ALL     b       NULL    NULL    NULL    5       Using where; Using join buffer
344
344
explain select * from t1,t2 force index(c) where t1.a=t2.a;
345
345
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
346
346
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    2       
347
 
1       SIMPLE  t1      ALL     a       NULL    NULL    NULL    5       Using where; Using join buffer
 
347
1       SIMPLE  t1      ref     a       a       4       test.t2.a       1       
348
348
explain select * from t1 where a=0 or a=2;
349
349
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
350
350
1       SIMPLE  t1      ALL     a       NULL    NULL    NULL    5       Using where
648
648
test.t1 check   status  OK
649
649
OPTIMIZE TABLE t1;
650
650
Table   Op      Msg_type        Msg_text
651
 
test.t1 optimize        status  OK
 
651
test.t1 optimize        note    The storage engine for the table doesn't support optimize
652
652
CHECK TABLE t1 EXTENDED;
653
653
Table   Op      Msg_type        Msg_text
654
654
test.t1 check   status  OK
1724
1724
2
1725
1725
OPTIMIZE TABLE t1;
1726
1726
Table   Op      Msg_type        Msg_text
1727
 
test.t1 optimize        status  OK
 
1727
test.t1 optimize        note    The storage engine for the table doesn't support optimize
1728
1728
SELECT COUNT(*) FROM t1;
1729
1729
COUNT(*)
1730
1730
2
1799
1799
2
1800
1800
OPTIMIZE TABLE t1;
1801
1801
Table   Op      Msg_type        Msg_text
1802
 
test.t1 optimize        status  OK
 
1802
test.t1 optimize        note    The storage engine for the table doesn't support optimize
1803
1803
SELECT COUNT(*) FROM t1;
1804
1804
COUNT(*)
1805
1805
2