498
498
create table t2 (a int, b varchar(200), c text not null);
499
499
insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
500
500
insert t2 select * from t1;
501
checksum table t1, t2, t3;
502
checksum table t1, t2, t3;
503
checksum table t1, t2, t3;
504
501
--replace_column 1 # 6 # 7 # 8 # 9 # 10 #
505
502
show table status;
506
503
drop table t1,t2;
555
# Bug#12296 - CHECKSUM TABLE reports 0 for the table
556
# This happened if the first record was marked as deleted.
558
create table t1 (c1 int);
559
insert into t1 values (1),(2),(3),(4);
561
delete from t1 where c1 = 1;
562
create table t2 as select * from t1;
563
# The following returns 0 with the bug in place.
565
# The above should give the same number as the following.
569
550
# BUG#13814 - key value packed incorrectly for TINYBLOBs
929
# Test of key_block_size
932
create temporary table t1 (a int not null, key `a` (a) key_block_size=1024) ENGINE=MyISAM;
933
show create table t1;
936
create temporary table t1 (a int not null, key `a` (a) key_block_size=2048) ENGINE=MyISAM;
937
show create table t1;
940
create temporary table t1 (a varchar(2048), key `a` (a)) ENGINE=MyISAM;
941
show create table t1;
944
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1024) ENGINE=MyISAM;
945
show create table t1;
948
create temporary table t1 (a int not null, b varchar(2048), key (a), key(b)) ENGINE=MyISAM key_block_size=1024;
949
show create table t1;
950
alter table t1 key_block_size=2048;
951
show create table t1;
952
alter table t1 add c int, add key (c);
953
show create table t1;
954
alter table t1 key_block_size=0;
955
alter table t1 add d int, add key (d);
956
show create table t1;
959
create temporary table t1 (a int not null, b varchar(2048), key (a), key(b)) ENGINE=MyISAM key_block_size=8192;
960
show create table t1;
963
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;
964
show create table t1;
967
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;
968
show create table t1;
972
# Test limits and errors of key_block_size
974
create temporary table t1 (a int not null, key `a` (a) key_block_size=512) ENGINE=MyISAM;
975
show create table t1;
978
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1000000000000000000) ENGINE=MyISAM;
979
show create table t1;
982
create temporary table t1 (a int not null, key `a` (a) key_block_size=1025) ENGINE=MyISAM;
983
show create table t1;
987
create temporary table t1 (a int not null, key key_block_size=1024 (a)) ENGINE=MyISAM;
989
create temporary table t1 (a int not null, key `a` key_block_size=1024 (a)) ENGINE=MyISAM;
992
910
# Bug#22119 - Changing MI_KEY_BLOCK_LENGTH makes a wrong myisamchk
994
912
CREATE temporary TABLE t1 (