|
| 1 | +# include/concurrent.inc |
1 | 2 | #
|
2 |
| -# Concurrent InnoDB tests, mainly in UPDATE's |
| 3 | +# Concurrent tests for transactional storage engines, mainly in UPDATE's |
3 | 4 | # Bug#3300
|
4 | 5 | # Designed and tested by Sinisa Milivojevic, sinisa@mysql.com
|
5 | 6 | #
|
6 | 7 | # two non-interfering UPDATE's not changing result set
|
7 | 8 | #
|
8 |
| - |
9 |
| -# test takes circa 5 minutes to run, so it's big |
10 |
| --- source include/big_test.inc |
| 9 | +# The variable |
| 10 | +# $engine_type -- storage engine to be tested |
| 11 | +# has to be set before sourcing this script. |
| 12 | +# |
| 13 | +# Last update: |
| 14 | +# 2006-08-02 ML test refactored |
| 15 | +# old name was t/innodb_concurrent.test |
| 16 | +# main code went into include/concurrent.inc |
| 17 | +# |
11 | 18 |
|
12 | 19 | connection default;
|
| 20 | +eval SET SESSION STORAGE_ENGINE = $engine_type; |
| 21 | +--disable_warnings |
13 | 22 | drop table if exists t1;
|
14 |
| -create table t1(eta int(11) not null, tipo int(11), c varchar(255)) engine=innodb; |
| 23 | +--enable_warnings |
| 24 | +create table t1(eta int(11) not null, tipo int(11), c varchar(255)); |
15 | 25 | connect (thread1, localhost, mysqltest,,);
|
16 | 26 | connection thread1;
|
| 27 | +eval SET SESSION STORAGE_ENGINE = $engine_type; |
17 | 28 | insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
18 | 29 | insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
19 | 30 | insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
|
@@ -57,7 +68,7 @@ drop table t1;
|
57 | 68 | #
|
58 | 69 | #connect (thread1, localhost, mysqltest,,);
|
59 | 70 | connection thread1;
|
60 |
| -create table t1(eta int(11) not null, tipo int(11), c varchar(255)) engine=innodb; |
| 71 | +create table t1(eta int(11) not null, tipo int(11), c varchar(255)); |
61 | 72 | insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
62 | 73 | insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
63 | 74 | insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
|
@@ -103,7 +114,7 @@ drop table t1;
|
103 | 114 |
|
104 | 115 | #connect (thread1, localhost, mysqltest,,);
|
105 | 116 | connection thread1;
|
106 |
| -create table t1 (a int not null, b int not null) engine=innodb; |
| 117 | +create table t1 (a int not null, b int not null); |
107 | 118 | insert into t1 values (1,1),(2,1),(3,1),(4,1);
|
108 | 119 | select get_lock("hello2",1000);
|
109 | 120 | #connect (thread2, localhost, mysqltest,,);
|
@@ -132,7 +143,7 @@ drop table t1;
|
132 | 143 | #
|
133 | 144 | #connect (thread1, localhost, mysqltest,,);
|
134 | 145 | connection thread1;
|
135 |
| -create table t1(eta int(11) not null, tipo int(11), c varchar(255)) engine=innodb; |
| 146 | +create table t1(eta int(11) not null, tipo int(11), c varchar(255)); |
136 | 147 | insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
137 | 148 | insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
138 | 149 | insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
|
@@ -175,7 +186,7 @@ drop table t1;
|
175 | 186 | #
|
176 | 187 | #connect (thread1, localhost, mysqltest,,);
|
177 | 188 | connection thread1;
|
178 |
| -create table t1(eta int(11) not null, tipo int(11), c varchar(255)) engine=innodb; |
| 189 | +create table t1(eta int(11) not null, tipo int(11), c varchar(255)); |
179 | 190 | insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
180 | 191 | insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
181 | 192 | insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
|
@@ -218,7 +229,7 @@ drop table t1;
|
218 | 229 | #
|
219 | 230 | #connect (thread1, localhost, mysqltest,,);
|
220 | 231 | connection thread1;
|
221 |
| -create table t1(eta int(11) not null, tipo int(11), c varchar(255)) engine=innodb; |
| 232 | +create table t1(eta int(11) not null, tipo int(11), c varchar(255)); |
222 | 233 | insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
223 | 234 | insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
224 | 235 | insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
|
@@ -261,7 +272,7 @@ drop table t1;
|
261 | 272 | #
|
262 | 273 | #connect (thread1, localhost, mysqltest,,);
|
263 | 274 | connection thread1;
|
264 |
| -create table t1(eta int(11) not null, tipo int(11), c varchar(255)) engine=innodb; |
| 275 | +create table t1(eta int(11) not null, tipo int(11), c varchar(255)); |
265 | 276 | insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
266 | 277 | insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
267 | 278 | insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
|
@@ -305,7 +316,7 @@ drop table t1;
|
305 | 316 | #
|
306 | 317 | #connect (thread1, localhost, mysqltest,,);
|
307 | 318 | connection thread1;
|
308 |
| -create table t1(eta int(11) not null, tipo int(11), c varchar(255)) engine=innodb; |
| 319 | +create table t1(eta int(11) not null, tipo int(11), c varchar(255)); |
309 | 320 | insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
310 | 321 | insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
311 | 322 | insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
|
|
0 commit comments