~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to tests/t/myisam.test

  • Committer: Stewart Smith
  • Date: 2010-05-17 07:04:33 UTC
  • mfrom: (1421.1.11)
  • Revision ID: stewart@flamingspork.com-20100517070433-q2c4skpli8bbl0df
Merged embedded-innodb-autoincrement into embedded-innodb-create-select-transaction-arrgh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
907
907
 
908
908
 
909
909
#
910
 
# Test of key_block_size
911
 
#
912
 
 
913
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=1024) ENGINE=MyISAM;
914
 
show create table t1;
915
 
drop table t1;
916
 
 
917
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=2048) ENGINE=MyISAM;
918
 
show create table t1;
919
 
drop table t1;
920
 
 
921
 
create temporary table t1 (a varchar(2048), key `a` (a)) ENGINE=MyISAM;
922
 
show create table t1;
923
 
drop table t1;
924
 
 
925
 
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1024) ENGINE=MyISAM;
926
 
show create table t1;
927
 
drop table t1;
928
 
 
929
 
create temporary table t1 (a int not null, b varchar(2048), key (a), key(b)) ENGINE=MyISAM key_block_size=1024;
930
 
show create table t1;
931
 
alter table t1 key_block_size=2048;
932
 
show create table t1;
933
 
alter table t1 add c int, add key (c);
934
 
show create table t1;
935
 
alter table t1 key_block_size=0;
936
 
alter table t1 add d int, add key (d);
937
 
show create table t1;
938
 
drop table t1;
939
 
 
940
 
create temporary table t1 (a int not null, b varchar(2048), key (a), key(b)) ENGINE=MyISAM key_block_size=8192;
941
 
show create table t1;
942
 
drop table t1;
943
 
 
944
 
create temporary table t1 (a int not null, b varchar(2048), key (a) key_block_size=1024, key(b)) ENGINE=MyISAM key_block_size=8192;
945
 
show create table t1;
946
 
drop table t1;
947
 
 
948
 
create temporary table t1 (a int not null, b int, key (a) key_block_size=1024, key(b) key_block_size=8192) ENGINE=MyISAM key_block_size=16384;
949
 
show create table t1;
950
 
drop table t1;
951
 
 
952
 
 
953
 
# Test limits and errors of key_block_size
954
 
 
955
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=512) ENGINE=MyISAM;
956
 
show create table t1;
957
 
drop table t1;
958
 
 
959
 
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1000000000000000000) ENGINE=MyISAM;
960
 
show create table t1;
961
 
drop table t1;
962
 
 
963
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=1025) ENGINE=MyISAM;
964
 
show create table t1;
965
 
drop table t1;
966
 
 
967
 
--error 1064
968
 
create temporary table t1 (a int not null, key key_block_size=1024 (a)) ENGINE=MyISAM;
969
 
--error 1064
970
 
create temporary table t1 (a int not null, key `a` key_block_size=1024 (a)) ENGINE=MyISAM;
971
 
 
972
 
#
973
910
# Bug#22119 - Changing MI_KEY_BLOCK_LENGTH makes a wrong myisamchk
974
911
#
975
912
CREATE temporary TABLE t1 (