File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -82,28 +82,28 @@ create view v1 as select * from information_schema.routines;
82
82
check table v1, information_schema.routines;
83
83
drop view v1;
84
84
85
-
86
85
#
87
86
# Bug#37527: mysqlcheck fails to report entire database
88
87
# when frm file corruption
89
88
#
90
89
CREATE TABLE t1(a INT);
91
90
CREATE TABLE t2(a INT);
92
91
# backup then null t1.frm
93
- --copy_file $MYSQLTEST_VARDIR/master-data/ test/t1.frm $MYSQLTEST_VARDIR/master-data /test/t1.frm.bak
94
- --remove_file $MYSQLTEST_VARDIR/master-data /test/t1.frm
95
- --write_file $MYSQLTEST_VARDIR/master-data /test/t1.frm
92
+ --copy_file $MYSQLD_DATADIR/ test/t1.frm $MYSQLD_DATADIR /test/t1.frm.bak
93
+ --remove_file $MYSQLD_DATADIR /test/t1.frm
94
+ --write_file $MYSQLD_DATADIR /test/t1.frm
96
95
EOF
97
96
--exec $MYSQL_CHECK test
98
97
# restore t1.frm
99
- --remove_file $MYSQLTEST_VARDIR/master-data /test/t1.frm
100
- --copy_file $MYSQLTEST_VARDIR/master-data/ test/t1.frm.bak $MYSQLTEST_VARDIR/master-data /test/t1.frm
101
- --remove_file $MYSQLTEST_VARDIR/master-data /test/t1.frm.bak
98
+ --remove_file $MYSQLD_DATADIR /test/t1.frm
99
+ --copy_file $MYSQLD_DATADIR/ test/t1.frm.bak $MYSQLD_DATADIR /test/t1.frm
100
+ --remove_file $MYSQLD_DATADIR /test/t1.frm.bak
102
101
DROP TABLE t1, t2;
103
102
104
103
105
104
--echo End of 5.0 tests
106
105
106
+
107
107
#
108
108
# Bug #30679: 5.1 name encoding not performed for views during upgrade
109
109
#
@@ -117,3 +117,6 @@ show tables;
117
117
show tables;
118
118
drop view v1, `v-1`;
119
119
drop table t1;
120
+
121
+
122
+ --echo End of 5.1 tests
You can’t perform that action at this time.
0 commit comments