~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/myisam.test

  • Committer: Stewart Smith
  • Date: 2010-08-05 16:41:55 UTC
  • mfrom: (1638.9.13)
  • mto: (1720.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1721.
  • Revision ID: stewart@flamingspork.com-20100805164155-7olu6iv6rwoxfsne
Merged store-foreign-key-in-table-proto into show-create-table-using-table-message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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;
550
547
check table t1;
551
548
drop table t1;
552
549
 
553
 
 
554
 
#
555
 
# Bug#12296 - CHECKSUM TABLE reports 0 for the table
556
 
# This happened if the first record was marked as deleted.
557
 
#
558
 
create table t1 (c1 int);
559
 
insert into t1 values (1),(2),(3),(4);
560
 
checksum table t1;
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.
564
 
checksum table t1;
565
 
# The above should give the same number as the following.
566
 
checksum table t2;
567
 
drop table t1, t2;
568
 
 
569
550
# BUG#13814 - key value packed incorrectly for TINYBLOBs
570
551
 
571
552
create table t1(
926
907
 
927
908
 
928
909
#
929
 
# Test of key_block_size
930
 
#
931
 
 
932
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=1024) ENGINE=MyISAM;
933
 
show create table t1;
934
 
drop table t1;
935
 
 
936
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=2048) ENGINE=MyISAM;
937
 
show create table t1;
938
 
drop table t1;
939
 
 
940
 
create temporary table t1 (a varchar(2048), key `a` (a)) ENGINE=MyISAM;
941
 
show create table t1;
942
 
drop table t1;
943
 
 
944
 
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1024) ENGINE=MyISAM;
945
 
show create table t1;
946
 
drop table t1;
947
 
 
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;
957
 
drop table t1;
958
 
 
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;
961
 
drop table t1;
962
 
 
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;
965
 
drop table t1;
966
 
 
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;
969
 
drop table t1;
970
 
 
971
 
 
972
 
# Test limits and errors of key_block_size
973
 
 
974
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=512) ENGINE=MyISAM;
975
 
show create table t1;
976
 
drop table t1;
977
 
 
978
 
create temporary table t1 (a varchar(2048), key `a` (a) key_block_size=1000000000000000000) ENGINE=MyISAM;
979
 
show create table t1;
980
 
drop table t1;
981
 
 
982
 
create temporary table t1 (a int not null, key `a` (a) key_block_size=1025) ENGINE=MyISAM;
983
 
show create table t1;
984
 
drop table t1;
985
 
 
986
 
--error 1064
987
 
create temporary table t1 (a int not null, key key_block_size=1024 (a)) ENGINE=MyISAM;
988
 
--error 1064
989
 
create temporary table t1 (a int not null, key `a` key_block_size=1024 (a)) ENGINE=MyISAM;
990
 
 
991
 
#
992
910
# Bug#22119 - Changing MI_KEY_BLOCK_LENGTH makes a wrong myisamchk
993
911
#
994
912
CREATE temporary TABLE t1 (