~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/tests/t/myisam.test

  • Committer: Brian Aker
  • Date: 2010-08-18 16:12:58 UTC
  • mto: This revision was merged to the branch mainline in revision 1720.
  • Revision ID: brian@tangent.org-20100818161258-1vm71da888dfvwsx
Remove the code surrounding stack trace.

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(
615
596
#
616
597
# Bug#8283 - OPTIMIZE TABLE causes data loss
617
598
#
618
 
SET GLOBAL myisam_repair_threads=2;
619
 
SHOW VARIABLES LIKE 'myisam_repair%';
620
 
#
621
599
# Test OPTIMIZE. This creates a new data file.
622
600
CREATE TEMPORARY TABLE t1 (
623
601
  `_id` int NOT NULL default '0',
659
637
show table status LIKE 't1';
660
638
SELECT _id FROM t1;
661
639
DROP TABLE t1;
662
 
#
663
 
SET GLOBAL myisam_repair_threads=1;
664
 
SHOW VARIABLES LIKE 'myisam_repair%';
665
640
 
666
641
#
667
642
# Bug#24607 - MyISAM pointer size determined incorrectly
900
875
#--exec myisamchk -dvv var/master-data/test/t1.MYI
901
876
#--exec myisamchk -iev var/master-data/test/t1.MYI
902
877
--echo # Enable keys with parallel repair
903
 
SET GLOBAL myisam_repair_threads=2;
904
878
ALTER TABLE t1 DISABLE KEYS;
905
879
ALTER TABLE t1 ENABLE KEYS;
906
 
SET GLOBAL myisam_repair_threads=1;
907
880
CHECK TABLE t1;
908
881
DROP TABLE t1;
909
882
 
926
899
 
927
900
 
928
901
#
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
902
# Bug#22119 - Changing MI_KEY_BLOCK_LENGTH makes a wrong myisamchk
993
903
#
994
904
CREATE temporary TABLE t1 (