Skip to content

Commit 1bbf37e

Browse files
committed
MDEV-515: Improve test coverage
Cover dict_index_t::clear() for TEMPORARY TABLE
1 parent f9cac8d commit 1bbf37e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

mysql-test/suite/innodb/r/insert_into_empty.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ SET tx_read_only=1;
4545
BEGIN;
4646
INSERT INTO t2 VALUES(0);
4747
INSERT INTO t VALUES(0);
48+
ROLLBACK;
49+
BEGIN;
50+
INSERT INTO t2 VALUES(0);
51+
INSERT INTO t VALUES(0);
4852
COMMIT;
4953
INSERT INTO t VALUES(0);
5054
DROP TEMPORARY TABLE t,t2;

mysql-test/suite/innodb/t/insert_into_empty.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ SET tx_read_only=1;
5151
BEGIN;
5252
INSERT INTO t2 VALUES(0);
5353
INSERT INTO t VALUES(0);
54+
ROLLBACK;
55+
BEGIN;
56+
INSERT INTO t2 VALUES(0);
57+
INSERT INTO t VALUES(0);
5458
COMMIT;
5559
INSERT INTO t VALUES(0);
5660

0 commit comments

Comments
 (0)