~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/mix2_myisam.result

  • Committer: Jay Pipes
  • Date: 2009-09-21 14:33:44 UTC
  • mfrom: (1126.10.26 dtrace-probes)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: jpipes@serialcoder-20090921143344-jnarp7gcn6zmg19c
Merge fixes from Trond and Padraig on dtrace probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
1       1006    101
166
166
1       1007    101
167
167
1       1005    101
168
 
alter table t1 engine=MyISAM;
 
168
optimize table t1;
 
169
Table   Op      Msg_type        Msg_text
 
170
test.t1 optimize        note    The storage engine for the table doesn't support optimize
 
171
show keys from t1;
 
172
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
 
173
t1      0       PRIMARY 1       id      A       #       NULL    NULL            BTREE           
 
174
t1      1       parent_id       1       parent_id       A       #       NULL    NULL            BTREE           
 
175
t1      1       level   1       level   A       #       NULL    NULL            BTREE           
169
176
drop table t1;
170
177
create TEMPORARY table t1 (
171
178
gesuchnr int DEFAULT '0' NOT NULL,
182
189
drop table t1;
183
190
create TEMPORARY table t1 (a int) engine=MyISAM;
184
191
insert into t1 values (1), (2);
185
 
alter table t1 ENGINE=MyISAM;
 
192
optimize table t1;
 
193
Table   Op      Msg_type        Msg_text
 
194
test.t1 optimize        note    The storage engine for the table doesn't support optimize
186
195
delete from t1 where a = 1;
187
196
select * from t1;
188
197
a
202
211
analyze table t1;
203
212
Table   Op      Msg_type        Msg_text
204
213
test.t1 analyze note    The storage engine for the table doesn't support analyze
 
214
show keys from t1;
 
215
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
 
216
t1      1       skr     1       a       A       #       NULL    NULL    YES     BTREE           
205
217
drop table t1;
206
218
create TEMPORARY table t1 (a int,b varchar(20),key(a)) engine=MyISAM;
207
219
insert into t1 values (1,""), (2,"testing");
244
256
drop table t1;
245
257
create TEMPORARY table t1 (a int not null, b int not null,c int not null,
246
258
key(a),primary key(a,b), unique(c),key(a),unique(b)) ENGINE = MyISAM;
 
259
show index from t1;
 
260
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
 
261
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
 
262
t1      0       PRIMARY 2       b       A       #       NULL    NULL            BTREE           
 
263
t1      0       c       1       c       A       #       NULL    NULL            BTREE           
 
264
t1      0       b       1       b       A       #       NULL    NULL            BTREE           
 
265
t1      1       a       1       a       A       #       NULL    NULL            BTREE           
 
266
t1      1       a_2     1       a       A       #       NULL    NULL            BTREE           
247
267
drop table t1;
248
268
create TEMPORARY table t1 (col1 int not null, col2 char(4) not null, primary key(col1)) ENGINE = MEMORY;
249
269
alter table t1 engine=MyISAM;
311
331
drop table t1,t2;
312
332
create TEMPORARY table t1 (
313
333
id int NOT NULL auto_increment,
314
 
ggid varchar(32) DEFAULT '' NOT NULL,
 
334
ggid varchar(32) binary DEFAULT '' NOT NULL,
315
335
email varchar(64) DEFAULT '' NOT NULL,
316
 
passwd varchar(32) DEFAULT '' NOT NULL,
 
336
passwd varchar(32) binary DEFAULT '' NOT NULL,
317
337
PRIMARY KEY (id),
318
338
UNIQUE ggid (ggid)
319
339
) ENGINE=MyISAM;
591
611
a       b
592
612
world   2
593
613
hello   1
594
 
alter table t1 ENGINE=MyISAM;
 
614
optimize table t1;
 
615
Table   Op      Msg_type        Msg_text
 
616
test.t1 optimize        note    The storage engine for the table doesn't support optimize
 
617
show keys from t1;
 
618
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
 
619
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
595
620
drop table t1;
596
621
create TEMPORARY table t1 (i int, j int ) ENGINE=MyISAM;
597
622
insert into t1 values (1,2);
740
765
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    #       
741
766
drop table t1;
742
767
create TEMPORARY table t1 (t int not null default 1, key (t)) engine=MyISAM;
 
768
desc t1;
 
769
Field   Type    Null    Key     Default Extra
 
770
t       int     NO      MUL     1       
743
771
drop table t1;
744
772
create TEMPORARY table t1 (id int not null auto_increment, code int not null, name char(20) not null, primary key (id), key (code), unique (name)) engine=MyISAM;
745
773
BEGIN;
894
922
insert t4 select * from t1;
895
923
insert t5 select * from t1;
896
924
insert t6 select * from t1;
897
 
checksum table t1, t2, t3, t4, t5, t6, t7;
898
 
Table   Checksum
899
 
test.t1 2948697075
900
 
test.t2 2948697075
901
 
test.t3 3505595080
902
 
test.t4 3505595080
903
 
test.t5 2948697075
904
 
test.t6 2948697075
905
 
test.t7 NULL
906
 
Warnings:
907
 
Error   1146    Table 'test.t7' doesn't exist
908
 
checksum table t1, t2, t3, t4, t5, t6, t7;
909
 
Table   Checksum
910
 
test.t1 2948697075
911
 
test.t2 2948697075
912
 
test.t3 3505595080
913
 
test.t4 3505595080
914
 
test.t5 2948697075
915
 
test.t6 2948697075
916
 
test.t7 NULL
917
 
Warnings:
918
 
Error   1146    Table 'test.t7' doesn't exist
919
 
checksum table t1, t2, t3, t4, t5, t6, t7;
920
 
Table   Checksum
921
 
test.t1 2948697075
922
 
test.t2 2948697075
923
 
test.t3 3505595080
924
 
test.t4 3505595080
 
925
checksum table t1, t2, t3, t4, t5, t6, t7 quick;
 
926
Table   Checksum
 
927
test.t1 NULL
 
928
test.t2 NULL
 
929
test.t3 NULL
 
930
test.t4 NULL
 
931
test.t5 NULL
 
932
test.t6 NULL
 
933
test.t7 NULL
 
934
Warnings:
 
935
Error   1146    Table 'test.t7' doesn't exist
 
936
checksum table t1, t2, t3, t4, t5, t6, t7;
 
937
Table   Checksum
 
938
test.t1 2948697075
 
939
test.t2 2948697075
 
940
test.t3 2948697075
 
941
test.t4 2948697075
 
942
test.t5 2948697075
 
943
test.t6 2948697075
 
944
test.t7 NULL
 
945
Warnings:
 
946
Error   1146    Table 'test.t7' doesn't exist
 
947
checksum table t1, t2, t3, t4, t5, t6, t7 extended;
 
948
Table   Checksum
 
949
test.t1 2948697075
 
950
test.t2 2948697075
 
951
test.t3 2948697075
 
952
test.t4 2948697075
925
953
test.t5 2948697075
926
954
test.t6 2948697075
927
955
test.t7 NULL
930
958
drop table t1,t2,t3, t4, t5, t6;
931
959
create TEMPORARY table t1 (a int) engine=MyISAM;
932
960
create table t2 like t1;
933
 
ERROR HY000: Can't create table 'test.t2' (errno: 138)
934
 
create table t2 like t1 engine=innodb;
935
961
show create table t2;
936
962
Table   Create Table
937
963
t2      CREATE TABLE `t2` (
938
964
  `a` int DEFAULT NULL
939
 
) ENGINE=InnoDB
 
965
) ENGINE=MyISAM
940
966
drop table t1,t2;
941
967
flush status;
942
968
show status like "binlog_cache_use";
1595
1621
  `v` varchar(10) DEFAULT NULL
1596
1622
) ENGINE=MyISAM
1597
1623
drop table t1;
1598
 
create TEMPORARY table t1 (v varchar(10), c char(10));
 
1624
create TEMPORARY table t1 (v varchar(10), c char(10)) row_format=fixed;
1599
1625
show create table t1;
1600
1626
Table   Create Table
1601
1627
t1      CREATE TEMPORARY TABLE `t1` (
1602
1628
  `v` varchar(10) DEFAULT NULL,
1603
1629
  `c` varchar(10) DEFAULT NULL
1604
 
) ENGINE=MyISAM
 
1630
) ENGINE=MyISAM ROW_FORMAT=FIXED
1605
1631
insert into t1 values('a','a'),('a ','a ');
1606
1632
select concat('*',v,'*',c,'*') from t1;
1607
1633
concat('*',v,'*',c,'*')
1690
1716
create TEMPORARY table t1 ( a int ) ENGINE=MyISAM;
1691
1717
BEGIN;
1692
1718
INSERT INTO t1 VALUES (1);
1693
 
ALTER TABLE t1 ENGINE=MyISAM;
 
1719
OPTIMIZE TABLE t1;
 
1720
Table   Op      Msg_type        Msg_text
 
1721
test.t1 optimize        note    The storage engine for the table doesn't support optimize
1694
1722
DROP TABLE t1;