File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,14 @@ if ($shutdown_timeout == 0)
35
35
shutdown_server $server_shutdown_timeout ;
36
36
37
37
# Write file to make mysql-test-run.pl start up the server again
38
- --exec echo "restart" > $_expect_file_name
38
+ if ($restart_parameters )
39
+ {
40
+ --exec echo "restart: $restart_parameters" > $_expect_file_name
41
+ }
42
+ if (!$restart_parameters )
43
+ {
44
+ --exec echo "restart" > $_expect_file_name
45
+ }
39
46
40
47
# Turn on reconnect
41
48
--enable_reconnect
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ KEY `fk_crewRoleAssigned_roleCode` (`role_code`),
26
26
CONSTRAINT `fk_crewRoleAssigned_crewId` FOREIGN KEY (`crew_id`) REFERENCES `repro`.`crew` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
27
27
CONSTRAINT `fk_crewRoleAssigned_pilotId` FOREIGN KEY (`crew_id`) REFERENCES `repro`.`pilot` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
28
28
) ENGINE=InnoDB COMMENT="This is a comment about tables";
29
- # Restart mysqld --innodb_read_only_mode=1
29
+ ALTER TABLE `repro`.`crew_role_assigned` COMMENT = 'innodb_read_only';
30
+ ERROR HY000: Can't lock file (errno: 165 "Table is read only")
30
31
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
31
32
Table Create Table
32
33
crew_role_assigned CREATE TABLE `crew_role_assigned` (
@@ -52,7 +53,6 @@ crew_role_assigned CREATE TABLE `crew_role_assigned` (
52
53
CONSTRAINT `fk_crewRoleAssigned_crewId` FOREIGN KEY (`crew_id`) REFERENCES `crew` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
53
54
CONSTRAINT `fk_crewRoleAssigned_pilotId` FOREIGN KEY (`crew_id`) REFERENCES `pilot` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
54
55
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This is a new comment about tables'
55
- # Restart mysqld --innodb_read_only_mode=1
56
56
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
57
57
Table Create Table
58
58
crew_role_assigned CREATE TABLE `crew_role_assigned` (
Original file line number Diff line number Diff line change @@ -33,26 +33,28 @@ CONSTRAINT `fk_crewRoleAssigned_crewId` FOREIGN KEY (`crew_id`) REFERENCES `repr
33
33
CONSTRAINT `fk_crewRoleAssigned_pilotId` FOREIGN KEY (`crew_id`) REFERENCES `repro`.`pilot` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
34
34
) ENGINE=InnoDB COMMENT="This is a comment about tables";
35
35
36
- --echo # Restart mysqld --innodb_read_only_mode=1
37
- -- let $restart_parameters=--innodb-read-only-mode=1
36
+ -- let $restart_parameters=--innodb-read-only
38
37
-- source include/restart_mysqld.inc
39
38
39
+ --error ER_CANT_LOCK
40
+ ALTER TABLE `repro`.`crew_role_assigned` COMMENT = 'innodb_read_only';
40
41
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
41
42
43
+ -- let $restart_parameters=
42
44
-- source include/restart_mysqld.inc
43
45
44
46
ALTER TABLE `repro`.`crew_role_assigned` COMMENT = "This is a new comment about tables";
45
47
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
46
48
47
- --echo # Restart mysqld --innodb_read_only_mode=1
48
- -- let $restart_parameters=--innodb-read-only-mode=1
49
+ -- let $restart_parameters=--innodb-read-only
49
50
-- source include/restart_mysqld.inc
50
51
51
52
#
52
53
# Below create table should contain also fk definitions
53
54
#
54
55
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
55
56
57
+ -- let $restart_parameters=
56
58
-- source include/restart_mysqld.inc
57
59
58
60
DROP TABLE `repro`.`crew_role_assigned`;
You can’t perform that action at this time.
0 commit comments