1
+ set global default_storage_engine= innodb;
1
2
set default_storage_engine= innodb;
2
3
connect con2, localhost, root,,;
3
4
connection default;
@@ -289,7 +290,7 @@ set debug_sync= 'alter_table_copy_end SIGNAL ended WAIT_FOR end';
289
290
alter table t1 add b int NULL, algorithm= copy, lock= none;
290
291
connection con2;
291
292
insert into t1 values (1),(2),(3),(4),(5),(6);
292
- ERROR 23000: Duplicate entry '5' for key 'PRIMARY'
293
+ Got one of the listed errors
293
294
select * from t1;
294
295
a
295
296
1
@@ -496,6 +497,7 @@ a b UNIX_TIMESTAMP(row_start) UNIX_TIMESTAMP(row_end)
496
497
6 77 1.000000 2147483647.999999
497
498
alter table t1 drop system versioning, algorithm= copy, lock= none;
498
499
ERROR 0A000: LOCK=NONE is not supported. Reason: DROP SYSTEM VERSIONING. Try LOCK=SHARED
500
+ drop table t1;
499
501
#
500
502
# Test ROLLBACK TO SAVEPOINT
501
503
#
@@ -582,7 +584,7 @@ set debug_sync= 'reset';
582
584
drop table t1;
583
585
drop table t2;
584
586
drop table t3;
585
- create table t1 (a char(6), b int) engine=innodb ;
587
+ create table t1 (a char(6), b int);
586
588
insert t1 values ('abcde1',1),('abcde2',2);
587
589
set debug_sync= 'now wait_for downgraded';
588
590
connection con2;
838
840
drop table t1;
839
841
set debug_sync= 'reset';
840
842
## CHECK, UPDATE
841
- create table t1 (a int) engine=innodb ;
843
+ create table t1 (a int);
842
844
insert t1 values (1),(2),(3),(4);
843
845
set debug_sync= 'now wait_for downgraded';
844
846
connection con2;
863
865
14
864
866
drop table t1;
865
867
## DEFAULT, UPDATE
866
- create table t1 (a int) engine=innodb ;
868
+ create table t1 (a int);
867
869
insert t1 values (1),(2),(3),(4);
868
870
set debug_sync= 'now wait_for downgraded';
869
871
connection con2;
892
894
drop table t1;
893
895
set debug_sync= 'reset';
894
896
## VCOL + CHECK
895
- create table t1 (a int) engine=innodb ;
897
+ create table t1 (a int);
896
898
insert t1 values (1),(2),(3),(4);
897
899
set debug_sync= 'now wait_for downgraded';
898
900
connection con2;
@@ -939,8 +941,8 @@ connection default;
939
941
drop table t1;
940
942
set debug_sync= reset;
941
943
###
942
- create table t1 (a text, unique(a)) engine=innodb ;
943
- create table t2 (b text, unique(b)) engine=innodb ;
944
+ create table t1 (a text, unique(a));
945
+ create table t2 (b text, unique(b));
944
946
insert into t2 values (null),(null);
945
947
set debug_sync= 'now wait_for downgraded';
946
948
connection con2;
@@ -958,7 +960,7 @@ set debug_sync= reset;
958
960
#
959
961
# MDEV-29038 XA assertions failing in binlog_rollback and binlog_commit
960
962
#
961
- create table t (a int) engine=innodb ;
963
+ create table t (a int);
962
964
insert into t values (1);
963
965
xa begin 'xid';
964
966
set debug_sync= 'now wait_for downgraded';
@@ -1303,7 +1305,7 @@ drop table t;
1303
1305
# Test that correct fields are marked as explicit:
1304
1306
# Drop a, reorder b, add new column with default.
1305
1307
#
1306
- create table t (a int primary key, b int) engine=innodb ;
1308
+ create table t (a int primary key, b int);
1307
1309
insert into t values (1, 1), (2, 2), (3, 3);
1308
1310
set debug_sync= "alter_table_copy_end signal copy wait_for goon";
1309
1311
alter table t drop primary key, drop a,
@@ -1334,7 +1336,7 @@ c x
1334
1336
3 123456
1335
1337
drop table t;
1336
1338
# Test that all the fields are unpacked.
1337
- create table t (a int, b int) engine=innodb ;
1339
+ create table t (a int, b int);
1338
1340
insert into t values (NULL, 123), (NULL, 456);
1339
1341
set debug_sync= "alter_table_copy_end signal copy wait_for goon";
1340
1342
alter table t drop a, add primary key(b), algorithm=copy;
@@ -1464,7 +1466,7 @@ INSERT iso_levels VALUES (0, "READ UNCOMMITTED"),
1464
1466
(1, "READ COMMITTED"),
1465
1467
(2, "REPEATABLE READ"),
1466
1468
(3, "SERIALIZABLE");
1467
- create table t1 (a int, b int, key(b)) engine=innodb ;
1469
+ create table t1 (a int, b int, key(b));
1468
1470
connection con2;
1469
1471
insert into t1 values (1,1),(null,null),(3,3),(4,null),(null,5);
1470
1472
connection default;
@@ -1477,7 +1479,7 @@ delete from t1 where b is null;
1477
1479
set debug_sync= "now signal goalters";
1478
1480
connection default;
1479
1481
drop table t1;
1480
- create table t1 (a int, b int, key(b)) engine=innodb ;
1482
+ create table t1 (a int, b int, key(b));
1481
1483
connection con2;
1482
1484
insert into t1 values (1,1),(null,null),(3,3),(4,null),(null,5);
1483
1485
connection default;
@@ -1490,7 +1492,7 @@ delete from t1 where b is null;
1490
1492
set debug_sync= "now signal goalters";
1491
1493
connection default;
1492
1494
drop table t1;
1493
- create table t1 (a int, b int, key(b)) engine=innodb ;
1495
+ create table t1 (a int, b int, key(b));
1494
1496
connection con2;
1495
1497
insert into t1 values (1,1),(null,null),(3,3),(4,null),(null,5);
1496
1498
connection default;
@@ -1503,7 +1505,7 @@ delete from t1 where b is null;
1503
1505
set debug_sync= "now signal goalters";
1504
1506
connection default;
1505
1507
drop table t1;
1506
- create table t1 (a int, b int, key(b)) engine=innodb ;
1508
+ create table t1 (a int, b int, key(b));
1507
1509
connection con2;
1508
1510
insert into t1 values (1,1),(null,null),(3,3),(4,null),(null,5);
1509
1511
connection default;
@@ -1520,8 +1522,8 @@ set debug_sync= reset;
1520
1522
drop table iso_levels;
1521
1523
# MDEV-32126 Assertion fails upon online ALTER and binary log enabled
1522
1524
create temporary table tmp (id int, primary key(id)) engine=innodb;
1523
- create table t1 (a int, b text) engine=innodb ;
1524
- create table t2 (a int, b int, c char(8), d text, unique(a)) engine=innodb ;
1525
+ create table t1 (a int, b text);
1526
+ create table t2 (a int, b int, c char(8), d text, unique(a));
1525
1527
insert into t2 values (1,1,'f','e'),(1000,1000,'c','b');
1526
1528
connection default;
1527
1529
set debug_sync= 'alter_table_online_before_lock signal go_trx wait_for go_alter';
@@ -1540,7 +1542,7 @@ truncate t2;
1540
1542
set @@binlog_format=mixed;
1541
1543
connection con2;
1542
1544
start transaction;
1543
- create temporary table tmp (id int, primary key(id)) engine=innodb ;
1545
+ create temporary table tmp (id int, primary key(id));
1544
1546
insert into t1 values (1, repeat('x',8000)),(2, repeat('x',8000));
1545
1547
update t2 set b = null order by b limit 2;
1546
1548
insert into t1 values (3, repeat('x',8000));
@@ -1564,7 +1566,7 @@ drop table t1, t2;
1564
1566
set @@binlog_format=default;
1565
1567
set debug_sync= reset;
1566
1568
# MDEV-32444 Data from orphaned XA transaction is lost after online alter
1567
- create table t (a int primary key) engine=innodb ;
1569
+ create table t (a int primary key);
1568
1570
insert into t values (1);
1569
1571
# XA commit
1570
1572
set debug_sync= 'alter_table_online_downgraded signal downgraded wait_for go';
@@ -1673,6 +1675,7 @@ connect con1, localhost, root,,;
1673
1675
connection default;
1674
1676
drop table t;
1675
1677
set debug_sync= reset;
1678
+ set global default_storage_engine= MyISAM;
1676
1679
disconnect con1;
1677
1680
disconnect con2;
1678
1681
#
0 commit comments