Skip to content

Commit a6ed922

Browse files
committed
The test case innodb.foreign-keys is failing in pb2 5.5. This is because
some of the tables are created in InnoDB and some tables are created in MyISAM. We need to create all tables on InnoDB. Fix is to add engine=innodb to the CREATE TABLE statements. approved in IM by Marko and Vasil.
1 parent bb14cc0 commit a6ed922

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mysql-test/suite/innodb/r/foreign-keys.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
CREATE TABLE `department` (`department_id` INT, `department_people_fk` INT,
66
PRIMARY KEY (`department_id`)) engine=innodb;
77
CREATE TABLE `title` (`title_id` INT, `title_manager_fk` INT,
8-
`title_reporter_fk` INT, PRIMARY KEY (`title_id`));
9-
CREATE TABLE `people` (`people_id` INT, PRIMARY KEY (`people_id`));
8+
`title_reporter_fk` INT, PRIMARY KEY (`title_id`)) engine=innodb;
9+
CREATE TABLE `people` (`people_id` INT, PRIMARY KEY (`people_id`)) engine=innodb;
1010
ALTER TABLE `department` ADD FOREIGN KEY (`department_people_fk`) REFERENCES
1111
`people` (`people_id`);
1212
ALTER TABLE `title` ADD FOREIGN KEY (`title_manager_fk`) REFERENCES `people`

mysql-test/suite/innodb/t/foreign-keys.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ CREATE TABLE `department` (`department_id` INT, `department_people_fk` INT,
1010
PRIMARY KEY (`department_id`)) engine=innodb;
1111

1212
CREATE TABLE `title` (`title_id` INT, `title_manager_fk` INT,
13-
`title_reporter_fk` INT, PRIMARY KEY (`title_id`));
13+
`title_reporter_fk` INT, PRIMARY KEY (`title_id`)) engine=innodb;
1414

15-
CREATE TABLE `people` (`people_id` INT, PRIMARY KEY (`people_id`));
15+
CREATE TABLE `people` (`people_id` INT, PRIMARY KEY (`people_id`)) engine=innodb;
1616

1717
ALTER TABLE `department` ADD FOREIGN KEY (`department_people_fk`) REFERENCES
1818
`people` (`people_id`);

0 commit comments

Comments
 (0)