diff --git a/mysql-test/suite/innodb/r/innodb-index.result b/mysql-test/suite/innodb/r/innodb-index.result index 3f3a14c72f2..e35c40ac4be 100644 --- a/mysql-test/suite/innodb/r/innodb-index.result +++ b/mysql-test/suite/innodb/r/innodb-index.result @@ -1087,7 +1087,8 @@ DROP TABLE t2; DROP TABLE t1; CREATE TABLE t1 (a INT, b CHAR(1)) ENGINE=InnoDB; INSERT INTO t1 VALUES (3,'a'),(3,'b'),(1,'c'),(0,'d'),(1,'e'); -CREATE TABLE t2 SELECT * FROM t1; +CREATE TABLE t2 (a INT, b CHAR(1)) ENGINE=InnoDB; +INSERT INTO t2 SELECT * FROM t1; BEGIN; SELECT * FROM t1; a b diff --git a/mysql-test/suite/innodb/t/innodb-index.test b/mysql-test/suite/innodb/t/innodb-index.test index 7f5b041202c..a7b75eff377 100644 --- a/mysql-test/suite/innodb/t/innodb-index.test +++ b/mysql-test/suite/innodb/t/innodb-index.test @@ -521,7 +521,8 @@ connect (b,localhost,root,,); connection a; CREATE TABLE t1 (a INT, b CHAR(1)) ENGINE=InnoDB; INSERT INTO t1 VALUES (3,'a'),(3,'b'),(1,'c'),(0,'d'),(1,'e'); -CREATE TABLE t2 SELECT * FROM t1; +CREATE TABLE t2 (a INT, b CHAR(1)) ENGINE=InnoDB; +INSERT INTO t2 SELECT * FROM t1; connection b; BEGIN; # This acquires a MDL lock on t1 until commit.