910
# Test of key_block_size
913
create temporary table t1 (a int not null, key `a` (a) key_block_size=1024) ENGINE=MyISAM;
914
show create table t1;
917
create temporary table t1 (a int not null, key `a` (a) key_block_size=2048) ENGINE=MyISAM;
918
show create table t1;
921
create temporary table t1 (a varchar(2048), key `a` (a)) ENGINE=MyISAM;
922
show create table t1;
925
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1024) ENGINE=MyISAM;
926
show create table t1;
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;
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;
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;
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;
953
# Test limits and errors of key_block_size
955
create temporary table t1 (a int not null, key `a` (a) key_block_size=512) ENGINE=MyISAM;
956
show create table t1;
959
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1000000000000000000) ENGINE=MyISAM;
960
show create table t1;
963
create temporary table t1 (a int not null, key `a` (a) key_block_size=1025) ENGINE=MyISAM;
964
show create table t1;
968
create temporary table t1 (a int not null, key key_block_size=1024 (a)) ENGINE=MyISAM;
970
create temporary table t1 (a int not null, key `a` key_block_size=1024 (a)) ENGINE=MyISAM;
973
910
# Bug#22119 - Changing MI_KEY_BLOCK_LENGTH makes a wrong myisamchk
975
912
CREATE temporary TABLE t1 (