~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/myisam.result

  • Committer: Brian Aker
  • Date: 2010-07-12 06:26:42 UTC
  • Revision ID: brian@gaz-20100712062642-6flofbshd9rfbi0c
MErge in change to do YES/NO like standard requires.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
alter table t1 engine=MYISAM;
29
29
show index from t1;
30
30
Table   Unique  Key_name        Seq_in_index    Column_name
31
 
t1      TRUE    PRIMARY 1       a
32
 
t1      FALSE   b       1       b
 
31
t1      YES     PRIMARY 1       a
 
32
t1      NO      b       1       b
33
33
alter table t1 engine=MyISAM;
34
34
show index from t1;
35
35
Table   Unique  Key_name        Seq_in_index    Column_name
36
 
t1      TRUE    PRIMARY 1       a
37
 
t1      FALSE   b       1       b
 
36
t1      YES     PRIMARY 1       a
 
37
t1      NO      b       1       b
38
38
drop table t1;
39
39
create temporary table t1 (a int not null, b int not null, c int not null, primary key (a),key(b)) engine=myisam;
40
40
insert into t1 values (3,3,3),(1,1,1),(2,2,2),(4,4,4);
309
309
alter table t1 ENGINE=MYISAM;
310
310
show index from t1;
311
311
Table   Unique  Key_name        Seq_in_index    Column_name
312
 
t1      FALSE   b       1       b
313
 
t1      FALSE   c       1       c
314
 
t1      FALSE   a       1       a
315
 
t1      FALSE   a       2       b
316
 
t1      FALSE   c_2     1       c
317
 
t1      FALSE   c_2     2       a
 
312
t1      NO      b       1       b
 
313
t1      NO      c       1       c
 
314
t1      NO      a       1       a
 
315
t1      NO      a       2       b
 
316
t1      NO      c_2     1       c
 
317
t1      NO      c_2     2       a
318
318
explain select * from t1,t2 where t1.a=t2.a;
319
319
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
320
320
1       SIMPLE  t2      ALL     a       NULL    NULL    NULL    2       
1364
1364
test.t1 analyze status  OK
1365
1365
show keys from t1;
1366
1366
Table   Unique  Key_name        Seq_in_index    Column_name
1367
 
t1      FALSE   a       1       a
 
1367
t1      NO      a       1       a
1368
1368
alter table t1 disable keys;
1369
1369
Warnings:
1370
1370
Note    1031    Table storage engine for 't1' doesn't have this option
1373
1373
Note    1031    Table storage engine for 't1' doesn't have this option
1374
1374
show keys from t1;
1375
1375
Table   Unique  Key_name        Seq_in_index    Column_name
1376
 
t1      FALSE   a       1       a
 
1376
t1      NO      a       1       a
1377
1377
drop table t1;
1378
1378
CREATE TEMPORARY TABLE t1(a INT, b INT, KEY inx (a), UNIQUE KEY uinx (b)) ENGINE=MyISAM;
1379
1379
INSERT INTO t1(a,b) VALUES (1,1),(2,2),(3,3),(4,4),(5,5);