fix innodb-get-fk test

incorrect option name and doing ALTER TABLE under read-only:
the test "passed" in 10.0 only because $restart_parameters
was first implemented in 10.1
This commit is contained in:
Sergei Golubchik 2015-12-20 12:31:49 +01:00
commit ab64d674e8
2 changed files with 8 additions and 6 deletions

View file

@ -33,19 +33,20 @@ CONSTRAINT `fk_crewRoleAssigned_crewId` FOREIGN KEY (`crew_id`) REFERENCES `repr
CONSTRAINT `fk_crewRoleAssigned_pilotId` FOREIGN KEY (`crew_id`) REFERENCES `repro`.`pilot` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB COMMENT="This is a comment about tables";
--echo # Restart mysqld --innodb_read_only_mode=1
-- let $restart_parameters=--innodb-read-only-mode=1
--echo # Restart mysqld --innodb_read_only=1
-- let $restart_parameters=--innodb-read-only=1
-- source include/restart_mysqld.inc
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
-- let $restart_parameters=
-- source include/restart_mysqld.inc
ALTER TABLE `repro`.`crew_role_assigned` COMMENT = "This is a new comment about tables";
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
--echo # Restart mysqld --innodb_read_only_mode=1
-- let $restart_parameters=--innodb-read-only-mode=1
--echo # Restart mysqld --innodb_read_only=1
-- let $restart_parameters=--innodb-read-only=1
-- source include/restart_mysqld.inc
#
@ -53,6 +54,7 @@ SHOW CREATE TABLE `repro`.`crew_role_assigned`;
#
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
-- let $restart_parameters=
-- source include/restart_mysqld.inc
DROP TABLE `repro`.`crew_role_assigned`;