91
# Test of OPTIMIZE of locked and modified tables
93
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
94
INSERT INTO t1 VALUES (1), (2), (3);
96
INSERT INTO t1 VALUES (1), (2), (3);
101
91
# Test of optimize, when only mi_sort_index (but not mi_repair*) is done
102
92
# in ha_myisam::repair, and index size is changed (decreased).
510
500
select c1 from t1 order by c1 limit 1;
514
# Bug #14400 Join could miss concurrently inserted row
516
# @TODO The below test hangs drizzle. Commenting out for now so I can continue with this test. - JRP
519
#create table t1 (a int not null, primary key(a));
520
#create table t2 (a int not null, b int not null, primary key(a,b));
521
#insert into t1 values (1),(2),(3),(4),(5),(6);
522
#insert into t2 values (1,1),(2,1);
523
#lock tables t1 read local, t2 read local;
524
#select straight_join * from t1,t2 force index (primary) where t1.a=t2.a;
525
#connect (root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
526
#insert into t2 values(2,0);
529
#select straight_join * from t1,t2 force index (primary) where t1.a=t2.a;
534
#CREATE TABLE t1 (c1 varchar(250) NOT NULL);
535
#CREATE TABLE t2 (c1 varchar(250) NOT NULL, PRIMARY KEY (c1));
536
#INSERT INTO t1 VALUES ('test000001'), ('test000002'), ('test000003');
537
#INSERT INTO t2 VALUES ('test000002'), ('test000003'), ('test000004');
538
#LOCK TABLES t1 READ LOCAL, t2 READ LOCAL;
539
#SELECT t1.c1 AS t1c1, t2.c1 AS t2c1 FROM t1, t2
540
# WHERE t1.c1 = t2.c1 HAVING t1c1 != t2c1;
541
#connect (con1,localhost,root,,);
543
#INSERT INTO t2 VALUES ('test000001'), ('test000005');
546
#SELECT t1.c1 AS t1c1, t2.c1 AS t2c1 FROM t1, t2
547
# WHERE t1.c1 = t2.c1 HAVING t1c1 != t2c1;
551
503
# End of 4.0 tests
553
505
create table t1 (a int, b varchar(200), c text not null) checksum=1;
1040
992
eval set storage_engine=$default;
1043
# Test concurrent insert
1044
# First with static record length
1046
#@TODO The below test fails with unknown system variable
1049
#set @save_concurrent_insert=@@concurrent_insert;
1050
#set global concurrent_insert=1;
1051
#create table t1 (a int);
1052
#insert into t1 values (1),(2),(3),(4),(5);
1053
#lock table t1 read local;
1054
#connect (con1,localhost,root,,);
1056
# Insert in table without hole
1057
#insert into t1 values(6),(7);
1058
#connection default;
1060
#delete from t1 where a>=3 and a<=4;
1061
#lock table t1 read local;
1063
#set global concurrent_insert=2;
1064
# Insert in table with hole -> Should insert at end
1065
#insert into t1 values (8),(9);
1066
#connection default;
1069
#insert into t1 values (10),(11),(12);
1075
# Same test with dynamic record length
1076
#create table t1 (a int, b varchar(30) default "hello");
1077
#insert into t1 (a) values (1),(2),(3),(4),(5);
1078
#lock table t1 read local;
1079
#connect (con1,localhost,root,,);
1081
# Insert in table without hole
1082
#insert into t1 (a) values(6),(7);
1083
#connection default;
1085
#delete from t1 where a>=3 and a<=4;
1086
#lock table t1 read local;
1088
#set global concurrent_insert=2;
1089
## Insert in table with hole -> Should insert at end
1090
#insert into t1 (a) values (8),(9);
1091
#connection default;
1094
#insert into t1 (a) values (10),(11),(12);
1099
#set global concurrent_insert=@save_concurrent_insert;
1102
995
# BUG#9622 - ANALYZE TABLE and ALTER TABLE .. ENABLE INDEX produce
1103
996
# different statistics on the same table with NULL values.