~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/innodb.test

  • Committer: Brian Aker
  • Date: 2009-08-18 07:19:56 UTC
  • mfrom: (1116.1.3 stewart)
  • mto: This revision was merged to the branch mainline in revision 1118.
  • Revision ID: brian@gaz-20090818071956-nfpoe9rp3i7p50kx
Merge my branch from Stewart into one branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#                                                                     #
12
12
#######################################################################
13
13
 
14
 
SET @orig_lock_wait_timeout= @@innodb_lock_wait_timeout; 
15
 
SET GLOBAL innodb_lock_wait_timeout=2;
16
 
 
 
14
-- source include/have_innodb.inc
17
15
 
18
16
#
19
17
# Small basic test with ignore
54
52
update t1 set parent_id=parent_id+100;
55
53
select * from t1 where parent_id=102;
56
54
update t1 set id=id+1000;
57
 
--error ER_DUP_ENTRY, ER_DUP_KEY
 
55
-- error ER_DUP_ENTRY,1022
58
56
update t1 set id=1024 where id=1009; 
59
57
select * from t1;
60
58
update ignore t1 set id=id+1; # This will change all rows
69
67
explain select level,id,parent_id from t1 where level=1;
70
68
select level,id from t1 where level=1;
71
69
select level,id,parent_id from t1 where level=1;
72
 
alter table t1 ENGINE=innodb;
 
70
optimize table t1;
73
71
--replace_column 7 #
74
72
show keys from t1;
75
73
drop table t1;
96
94
 
97
95
create table t1 (a int) engine=innodb;
98
96
insert into t1 values (1), (2);
99
 
alter table t1 engine=innodb;
 
97
optimize table t1;
100
98
delete from t1 where a = 1;
101
99
select * from t1;
102
100
check table t1;
135
133
select n, "after commit" from t1;
136
134
commit;
137
135
insert into t1 values (5);
138
 
--error ER_DUP_ENTRY
 
136
-- error ER_DUP_ENTRY
139
137
insert into t1 values (4);
140
138
commit;
141
139
select n, "after commit" from t1;
142
140
set autocommit=1;
143
141
insert into t1 values (6);
144
 
--error ER_DUP_ENTRY
 
142
-- error ER_DUP_ENTRY
145
143
insert into t1 values (4);
146
144
select n from t1;
147
145
set autocommit=0;
156
154
select n from t1;
157
155
savepoint savept3;
158
156
rollback to savepoint savept2;
159
 
--error ER_SP_DOES_NOT_EXIST
 
157
--error 1305
160
158
rollback to savepoint savept3;
161
159
rollback to savepoint savept2;
162
160
release savepoint `my_savepoint`;
163
161
select n from t1;
164
 
--error ER_SP_DOES_NOT_EXIST
 
162
-- error 1305
165
163
rollback to savepoint `my_savepoint`;
 
164
--error 1305
166
165
rollback to savepoint savept2;
167
166
insert into t1 values (8);
168
167
savepoint sv;
183
182
flush tables with read lock;
184
183
#
185
184
# Current code can't handle a read lock in middle of transaction
186
 
#--error ER_CANT_UPDATE_WITH_READLOCK
 
185
#--error 1223;
187
186
commit;
188
187
unlock tables;
189
188
commit;
214
213
 
215
214
CREATE TABLE t1 (id char(8) not null primary key, val int not null) engine=innodb;
216
215
insert into t1 values ('pippo', 12);
217
 
--error ER_DUP_ENTRY
 
216
-- error ER_DUP_ENTRY
218
217
insert into t1 values ('pippo', 12); # Gives error
219
218
delete from t1;
220
219
delete from t1 where id = 'pippo';
228
227
delete from t1;
229
228
commit;
230
229
select * from t1;
231
 
commit;
232
230
drop table t1;
233
231
 
234
232
#
236
234
#
237
235
 
238
236
create table t1 (a integer) engine=innodb;
 
237
start transaction;
239
238
rename table t1 to t2;
240
239
create table t1 (b integer) engine=innodb;
241
 
start transaction;
242
240
insert into t1 values (1);
243
241
rollback;
244
242
drop table t1;
261
259
COMMIT;
262
260
SELECT * FROM t1;
263
261
SELECT _userid FROM t1 WHERE _userid='marc@anyware.co.uk';
264
 
COMMIT;
265
262
drop table t1;
266
263
set autocommit=1;
267
264
 
306
303
select * from t1;
307
304
update t1 set col2='7' where col1='4';
308
305
select * from t1;
309
 
ALTER TABLE t1 ADD co3 INT DEFAULT 42 NOT NULL;
 
306
alter table t1 add co3 int not null;
310
307
select * from t1;
311
308
update t1 set col2='9' where col1='2';
312
309
select * from t1;
433
430
create table t1 (a varchar(100) not null, primary key(a), b int not null) engine=innodb;
434
431
insert into t1 values("hello",1),("world",2);
435
432
select * from t1 order by b desc;
436
 
alter table t1 engine=innodb;
 
433
optimize table t1;
437
434
--replace_column 7 #
438
435
show keys from t1;
439
436
drop table t1;
536
533
insert into mysqltest.t1 values(1);
537
534
create TEMPORARY table mysqltest.t2 (a int not null) engine= myisam;
538
535
insert into mysqltest.t2 values(1);
539
 
create temporary table mysqltest.t3 (a int not null) engine= MEMORY;
 
536
create temporary table mysqltest.t3 (a int not null) engine= heap;
540
537
insert into mysqltest.t3 values(1);
541
538
commit;
542
539
drop database mysqltest;
543
540
# Don't check error message
544
 
--error ER_BAD_DB_ERROR
 
541
--error 1049
545
542
show tables from mysqltest;
546
543
 
547
544
#
551
548
set autocommit=0;
552
549
create table t1 (a int not null) engine= innodb;
553
550
insert into t1 values(1),(2);
554
 
commit;
555
551
truncate table t1;
556
552
commit;
557
553
truncate table t1;
782
778
        foreign key(pid) references t1(id) on delete cascade) engine=innodb;
783
779
insert into t1 values(0,0),(1,0),(2,1),(3,2),(4,3),(5,4),(6,5),(7,6),
784
780
        (8,7),(9,8),(10,9),(11,10),(12,11),(13,12),(14,13),(15,14);
785
 
--error ER_ROW_IS_REFERENCED_2
 
781
-- error 1451
786
782
delete from t1 where id=0;
787
783
delete from t1 where id=15;
788
784
delete from t1 where id=0;
839
835
insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
840
836
insert t2 select * from t1;
841
837
insert t3 select * from t1;
842
 
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
838
checksum table t1, t2, t3, t4 quick;
 
839
checksum table t1, t2, t3, t4;
 
840
checksum table t1, t2, t3, t4 extended;
 
841
#show table status;
843
842
drop table t1,t2,t3;
844
843
 
845
844
#
871
870
create index id2 on t2 (id);
872
871
show create table t2;
873
872
drop index id2 on t2;
874
 
--error ER_ERROR_ON_RENAME, ER_ERROR_ON_RENAME
 
873
--error 1025,1025
875
874
drop index id on t2;
876
875
show create table t2;
877
876
drop table t2;
908
907
# Test error handling
909
908
 
910
909
# Embedded server doesn't chdir to data directory
911
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
 
910
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
912
911
--error ER_WRONG_FK_DEF
913
912
create table t2 (id int not null, id2 int not null, constraint t1_id_fk foreign key (id2,id) references t1 (id)) engine = innodb;
914
913
 
925
924
#
926
925
# Bug #6126: Duplicate columns in keys gives misleading error message
927
926
#
928
 
--error ER_DUP_FIELDNAME
 
927
--error 1060
929
928
create table t1 (c char(10), index (c,c)) engine=innodb;
930
 
--error ER_DUP_FIELDNAME
 
929
--error 1060
931
930
create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1)) engine=innodb;
932
 
--error ER_DUP_FIELDNAME
 
931
--error 1060
933
932
create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2)) engine=innodb;
934
 
--error ER_DUP_FIELDNAME
 
933
--error 1060
935
934
create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1)) engine=innodb;
936
935
create table t1 (c1 char(10), c2 char(10)) engine=innodb;
937
 
--error ER_DUP_FIELDNAME
 
936
--error 1060
938
937
alter table t1 add key (c1,c1);
939
 
--error ER_DUP_FIELDNAME
 
938
--error 1060
940
939
alter table t1 add key (c2,c1,c1);
941
 
--error ER_DUP_FIELDNAME
 
940
--error 1060
942
941
alter table t1 add key (c1,c2,c1);
943
 
--error ER_DUP_FIELDNAME
 
942
--error 1060
944
943
alter table t1 add key (c1,c1,c2);
945
944
drop table t1;
946
945
 
1030
1029
## Not deterministic.
1031
1030
# Test for testable InnoDB status variables. This test
1032
1031
# uses previous ones(pages_created, rows_deleted, ...).
1033
 
--replace_column 2 #
1034
 
show status like "Innodb_buffer_pool_pages_total";
1035
 
--replace_column 2 #
1036
 
show status like "Innodb_page_size";
1037
 
--replace_column 2 #
1038
 
show status like "Innodb_rows_deleted";
1039
 
--replace_column 2 #
1040
 
show status like "Innodb_rows_inserted";
1041
 
--replace_column 2 #
1042
 
show status like "Innodb_rows_updated";
 
1032
#show status like "Innodb_buffer_pool_pages_total";
 
1033
#show status like "Innodb_page_size";
 
1034
#show status like "Innodb_rows_deleted";
 
1035
#show status like "Innodb_rows_inserted";
 
1036
#show status like "Innodb_rows_updated";
1043
1037
 
1044
1038
## Test for row locks InnoDB status variables.
1045
 
--replace_column 2 #
1046
 
show status like "Innodb_row_lock_waits";
1047
 
--replace_column 2 #
1048
 
show status like "Innodb_row_lock_current_waits";
1049
 
--replace_column 2 #
1050
 
show status like "Innodb_row_lock_time";
1051
 
--replace_column 2 #
1052
 
show status like "Innodb_row_lock_time_max";
1053
 
--replace_column 2 #
1054
 
show status like "Innodb_row_lock_time_avg";
 
1039
#show status like "Innodb_row_lock_waits";
 
1040
#show status like "Innodb_row_lock_current_waits";
 
1041
#show status like "Innodb_row_lock_time";
 
1042
#show status like "Innodb_row_lock_time_max";
 
1043
#show status like "Innodb_row_lock_time_avg";
1055
1044
 
1056
1045
# Test for innodb_sync_spin_loops variable
1057
 
set @my_innodb_sync_spin_loops = @@global.innodb_sync_spin_loops;
1058
1046
show variables like "innodb_sync_spin_loops";
1059
1047
set global innodb_sync_spin_loops=1000;
1060
1048
show variables like "innodb_sync_spin_loops";
1062
1050
show variables like "innodb_sync_spin_loops";
1063
1051
set global innodb_sync_spin_loops=20;
1064
1052
show variables like "innodb_sync_spin_loops";
1065
 
set @@global.innodb_sync_spin_loops = @my_innodb_sync_spin_loops;
1066
1053
 
1067
1054
# Test for innodb_thread_concurrency variable
1068
 
set @my_innodb_thread_concurrency = @@global.innodb_thread_concurrency;
1069
1055
show variables like "innodb_thread_concurrency";
1070
1056
set global innodb_thread_concurrency=1001;
1071
1057
show variables like "innodb_thread_concurrency";
1073
1059
show variables like "innodb_thread_concurrency";
1074
1060
set global innodb_thread_concurrency=16;
1075
1061
show variables like "innodb_thread_concurrency";
1076
 
set @@global.innodb_thread_concurrency = @my_innodb_thread_concurrency;
1077
1062
 
1078
1063
# Test for innodb_concurrency_tickets variable
1079
1064
show variables like "innodb_concurrency_tickets";
1106
1091
#
1107
1092
 
1108
1093
# Embedded server doesn't chdir to data directory
1109
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
 
1094
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
1110
1095
create table t1 (v varchar(16383), key(v));
1111
1096
drop table t1;
1112
1097
create table t1 (v varchar(16383));
1158
1143
drop table t1;
1159
1144
 
1160
1145
#
 
1146
# Test that update does not change internal auto-increment value
 
1147
#
 
1148
 
 
1149
create table t1 (a int not null auto_increment primary key, val int) engine=InnoDB;
 
1150
insert into t1 (val) values (1);
 
1151
update t1 set a=2 where a=1;
 
1152
# We should get the following error because InnoDB does not update the counter
 
1153
--error ER_DUP_ENTRY
 
1154
insert into t1 (val) values (1);
 
1155
select * from t1;
 
1156
drop table t1;
 
1157
#
1161
1158
# Bug #10465
1162
1159
#
1163
1160
 
1203
1200
 id INT PRIMARY KEY
1204
1201
) ENGINE=InnoDB;
1205
1202
 
1206
 
--error ER_CANT_CREATE_TABLE, ER_CANT_CREATE_TABLE
 
1203
--error 1005,1005
1207
1204
CREATE TEMPORARY TABLE t2
1208
1205
(
1209
1206
 id INT NOT NULL PRIMARY KEY,
1257
1254
drop table t1, t2, t3, t4;
1258
1255
 
1259
1256
# these should be refused
1260
 
--error ER_TOO_LONG_KEY
 
1257
--error 1071
1261
1258
create table t1 (col1 varchar(768) primary key)
1262
1259
 engine = innodb;
1263
 
--error ER_TOO_LONG_KEY
1264
 
create table t2 (col1 varbinary(1024) primary key)
 
1260
--error 1071
 
1261
create table t2 (col1 varbinary(768) primary key)
1265
1262
 engine = innodb;
1266
 
--error ER_TOO_LONG_KEY
 
1263
--error 1071
1267
1264
create table t3 (col1 text, primary key(col1(768)))
1268
1265
 engine = innodb;
1269
 
--error ER_TOO_LONG_KEY
1270
 
create table t4 (col1 blob, primary key(col1(1024)))
 
1266
--error 1071
 
1267
create table t4 (col1 blob, primary key(col1(768)))
1271
1268
 engine = innodb;
1272
1269
 
1273
1270
#
1285
1282
 CONSTRAINT c1 FOREIGN KEY (v) REFERENCES t1(id)
1286
1283
) ENGINE=InnoDB;
1287
1284
 
1288
 
--error ER_NO_REFERENCED_ROW_2
 
1285
--error 1452
1289
1286
INSERT INTO t2 VALUES(2);
1290
1287
 
1291
1288
INSERT INTO t1 VALUES(1);
1292
1289
INSERT INTO t2 VALUES(1);
1293
1290
 
1294
 
--error ER_ROW_IS_REFERENCED_2
 
1291
--error 1451
1295
1292
DELETE FROM t1 WHERE id = 1;
1296
1293
 
1297
 
--error ER_ROW_IS_REFERENCED
 
1294
--error 1217
1298
1295
DROP TABLE t1;
1299
1296
 
1300
1297
SET FOREIGN_KEY_CHECKS=0;
1301
1298
DROP TABLE t1;
1302
1299
SET FOREIGN_KEY_CHECKS=1;
1303
1300
 
1304
 
--error ER_NO_REFERENCED_ROW_2
 
1301
--error 1452
1305
1302
INSERT INTO t2 VALUES(3);
1306
1303
 
1307
1304
DROP TABLE t2;
 
1305
#
 
1306
# Test that checksum table uses a consistent read Bug #12669
 
1307
#
 
1308
connect (a,localhost,root,,);
 
1309
connect (b,localhost,root,,);
 
1310
connection a;
 
1311
create table t1(a int not null) engine=innodb;
 
1312
insert into t1 values (1),(2);
 
1313
set autocommit=0;
 
1314
checksum table t1;
 
1315
connection b;
 
1316
insert into t1 values(3);
 
1317
connection a;
 
1318
#
 
1319
# Here checksum should not see insert
 
1320
#
 
1321
checksum table t1;
 
1322
connection a;
 
1323
commit;
 
1324
checksum table t1;
 
1325
commit;
 
1326
drop table t1;
 
1327
#
 
1328
# autocommit = 1
 
1329
#
 
1330
connection a;
 
1331
create table t1(a int not null) engine=innodb;
 
1332
insert into t1 values (1),(2);
 
1333
set autocommit=1;
 
1334
checksum table t1;
 
1335
connection b;
 
1336
set autocommit=1;
 
1337
insert into t1 values(3);
 
1338
connection a;
 
1339
#
 
1340
# Here checksum sees insert
 
1341
#
 
1342
checksum table t1;
 
1343
drop table t1;
 
1344
 
 
1345
connection default;
 
1346
disconnect a;
 
1347
disconnect b;
1308
1348
 
1309
1349
# tests for bugs #9802 and #13778
1310
1350
 
1313
1353
set foreign_key_checks=0;
1314
1354
create table t2 (a int primary key, b int, foreign key (b) references t1(a)) engine = innodb;
1315
1355
# Embedded server doesn't chdir to data directory
1316
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
1317
 
--error ER_CANT_CREATE_TABLE
 
1356
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
 
1357
-- error 1005
1318
1358
create table t1(a char(10) primary key, b varchar(20)) engine = innodb;
1319
1359
set foreign_key_checks=1;
1320
1360
drop table t2;
1324
1364
set foreign_key_checks=0;
1325
1365
create table t2 (a varchar(10), foreign key (a) references t1(a)) engine = innodb;
1326
1366
create table t1(a varchar(10) primary key) engine = innodb;
1327
 
--error ER_ERROR_ON_RENAME, ER_ERROR_ON_RENAME
 
1367
-- error 1025,1025
1328
1368
alter table t1 modify column a int;
1329
1369
set foreign_key_checks=1;
1330
1370
drop table t2,t1;
1338
1378
 
1339
1379
insert into t1 values(1);
1340
1380
insert into t3 values(1);
1341
 
--error ER_NO_REFERENCED_ROW_2
 
1381
-- error 1452
1342
1382
insert into t2 values(2);
1343
 
--error ER_NO_REFERENCED_ROW_2
 
1383
-- error 1452
1344
1384
insert into t4 values(2);
1345
1385
insert into t2 values(1);
1346
1386
insert into t4 values(1);
1347
 
--error ER_ROW_IS_REFERENCED_2
 
1387
-- error 1451
1348
1388
update t1 set a=2;
1349
 
--error ER_NO_REFERENCED_ROW_2
 
1389
-- error 1452
1350
1390
update t2 set a=2;
1351
 
--error ER_ROW_IS_REFERENCED_2
 
1391
-- error 1451
1352
1392
update t3 set a=2;
1353
 
--error ER_NO_REFERENCED_ROW_2
 
1393
-- error 1452
1354
1394
update t4 set a=2;
1355
 
--error ER_ROW_IS_REFERENCED_2
 
1395
-- error 1451
1356
1396
truncate t1;
1357
 
--error ER_ROW_IS_REFERENCED_2
 
1397
-- error 1451
1358
1398
truncate t3;
1359
1399
truncate t2;
1360
1400
truncate t4;
1371
1411
                 b varchar(255),
1372
1412
                 c varchar(255),
1373
1413
                 d varchar(255),
1374
 
                 key (a(200),b(200),c(200),d(200))) engine=innodb;
 
1414
                 key (a,b,c,d)) engine=innodb;
1375
1415
drop table t1;
1376
1416
--error ER_TOO_LONG_KEY
1377
1417
create table t1 (a varchar(255),
1385
1425
# test the padding of BINARY types and collations (Bug #14189)
1386
1426
 
1387
1427
create table t1 (s1 varbinary(2),primary key (s1)) engine=innodb;
1388
 
create table t3 (s1 varchar(2) ,primary key (s1)) engine=innodb;
1389
 
create table t4 (s1 char(2) ,primary key (s1)) engine=innodb;
 
1428
create table t3 (s1 varchar(2) binary,primary key (s1)) engine=innodb;
 
1429
create table t4 (s1 char(2) binary,primary key (s1)) engine=innodb;
1390
1430
 
1391
1431
insert into t1 values (0x41),(0x4120),(0x4100);
1392
 
--error ER_DUP_ENTRY
 
1432
-- error ER_DUP_ENTRY
1393
1433
insert into t3 values (0x41),(0x4120),(0x4100);
1394
1434
insert into t3 values (0x41),(0x4100);
1395
 
--error ER_DUP_ENTRY
 
1435
-- error ER_DUP_ENTRY
1396
1436
insert into t4 values (0x41),(0x4120),(0x4100);
1397
1437
insert into t4 values (0x41),(0x4100);
1398
1438
select hex(s1) from t1;
1407
1447
insert into t2 values(0x42);
1408
1448
insert into t2 values(0x41);
1409
1449
select hex(s1) from t2;
1410
 
--error ER_ROW_IS_REFERENCED_2
 
1450
-- error 1451
1411
1451
update t1 set s1=0x123456 where a=2;
1412
1452
select hex(s1) from t2;
1413
1453
update t1 set s1=0x12 where a=1;
1414
 
--error ER_DATA_TOO_LONG
 
1454
-- error 1406
1415
1455
update t1 set s1=0x12345678 where a=1;
1416
1456
update t1 set s1=0x123457 where a=1;
1417
1457
update t1 set s1=0x1220 where a=1;
1422
1462
select hex(s1) from t2;
1423
1463
delete from t1 where a=1;
1424
1464
update t2 set s1=0x4120;
1425
 
--error ER_ROW_IS_REFERENCED_2
 
1465
-- error 1451
1426
1466
delete from t1;
1427
1467
delete from t1 where a!=3;
1428
1468
select a,hex(s1) from t1;
1430
1470
 
1431
1471
drop table t2,t1;
1432
1472
 
1433
 
create table t1 (a int primary key,s1 varchar(2) not null unique) engine=innodb;
1434
 
create table t2 (s1 char(2) not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=innodb;
 
1473
create table t1 (a int primary key,s1 varchar(2) binary not null unique) engine=innodb;
 
1474
create table t2 (s1 char(2) binary not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=innodb;
1435
1475
 
1436
1476
insert into t1 values(1,0x4100),(2,0x41);
1437
1477
insert into t2 values(0x41);
1441
1481
update t1 set s1=0x12 where a=2;
1442
1482
select hex(s1) from t2;
1443
1483
delete from t1 where a=1;
1444
 
--error ER_ROW_IS_REFERENCED_2
 
1484
-- error 1451
1445
1485
delete from t1 where a=2;
1446
1486
select a,hex(s1) from t1;
1447
1487
select hex(s1) from t2;
1586
1626
#
1587
1627
# S-lock to records (2,2),(4,2), and (6,2) should not be released in a update
1588
1628
#
1589
 
--error ER_LOCK_WAIT_TIMEOUT
 
1629
--error 1205
1590
1630
select * from t1 where a = 2 and b = 2 for update;
1591
1631
#
1592
1632
# X-lock to record (1,1),(3,1),(5,1) should not be released in a update
1593
1633
#
1594
 
--error ER_LOCK_WAIT_TIMEOUT
 
1634
--error 1205
1595
1635
connection a;
1596
1636
commit;
1597
1637
connection b;
1623
1663
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
1624
1664
insert into t1 select * from t2;
1625
1665
update t1 set b = (select e from t2 where a = d);
1626
 
commit;
1627
1666
create table t3(d int not null, e int, primary key(d)) engine=innodb
1628
1667
select * from t2;
1629
1668
commit;
1722
1761
create table t10(a int not null, b int, primary key(a)) engine=innodb select * from t2 for update;
1723
1762
 
1724
1763
connection b;
1725
 
--error ER_LOCK_WAIT_TIMEOUT
 
1764
--error 1205
1726
1765
reap;
1727
1766
 
1728
1767
connection c;
1729
 
--error ER_LOCK_WAIT_TIMEOUT
 
1768
--error 1205
1730
1769
reap;
1731
1770
 
1732
1771
connection d;
1733
 
--error ER_LOCK_WAIT_TIMEOUT
 
1772
--error 1205
1734
1773
reap;
1735
1774
 
1736
1775
connection e;
1737
 
--error ER_LOCK_WAIT_TIMEOUT
 
1776
--error 1205
1738
1777
reap;
1739
1778
 
1740
1779
connection f;
1741
 
--error ER_LOCK_WAIT_TIMEOUT
 
1780
--error 1205
1742
1781
reap;
1743
1782
 
1744
1783
connection g;
1745
 
--error ER_LOCK_WAIT_TIMEOUT
 
1784
--error 1205
1746
1785
reap;
1747
1786
 
1748
1787
connection h;
1749
 
--error ER_LOCK_WAIT_TIMEOUT
 
1788
--error 1205
1750
1789
reap;
1751
1790
 
1752
1791
connection i;
1753
 
--error ER_LOCK_WAIT_TIMEOUT
 
1792
--error 1205
1754
1793
reap;
1755
1794
 
1756
1795
connection j;
1757
 
--error ER_LOCK_WAIT_TIMEOUT
 
1796
--error 1205
1758
1797
reap;
1759
1798
 
1760
1799
connection a;
1774
1813
drop table t1, t2, t3, t5, t6, t8, t9;
1775
1814
 
1776
1815
# bug 18934, "InnoDB crashes when table uses column names like DB_ROW_ID"
1777
 
--error ER_CANT_CREATE_TABLE, ER_WRONG_COLUMN_NAME
 
1816
--error 1005
1778
1817
CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
1779
1818
 
1780
1819
#
1818
1857
CREATE TABLE t1 ( a int ) ENGINE=innodb;
1819
1858
BEGIN;
1820
1859
INSERT INTO t1 VALUES (1);
1821
 
COMMIT;
1822
 
ALTER TABLE t1 ENGINE=innodb;
 
1860
OPTIMIZE TABLE t1;
1823
1861
DROP TABLE t1;
1824
1862
 
1825
1863
#
1851
1889
# mysqltest first does replace_regex, then replace_result
1852
1890
--replace_regex /'[^']*test\/#sql-[0-9a-f_]*'/'#sql-temporary'/
1853
1891
# Embedded server doesn't chdir to data directory
1854
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
1855
 
--error ER_ERROR_ON_RENAME
 
1892
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
 
1893
--error 1025
1856
1894
ALTER TABLE t2 MODIFY a INT NOT NULL;
1857
1895
DELETE FROM t1;
1858
1896
DROP TABLE t2,t1;
1908
1946
SELECT * FROM t1;
1909
1947
DROP TABLE t1;
1910
1948
 
1911
 
SET GLOBAL innodb_lock_wait_timeout=@orig_lock_wait_timeout ;
1912
 
 
1913
 
 
1914
1949
#######################################################################
1915
1950
#                                                                     #
1916
1951
# Please, DO NOT TOUCH this file as well as the innodb.result file.   #