28
24
drop table if exists t1;
30
create table t1(a int) engine=myisam;
31
insert into t1 values(1);
32
--system rm -f $MYSQLTEST_VARDIR/master-data/test/t1.frm
26
create table break_frm(a int) engine=myisam;
27
insert into break_frm values(1);
28
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.frm
29
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.dfe
33
30
--echo "We get an error because the table is in the definition cache"
34
31
--error ER_TABLE_EXISTS_ERROR
35
create table t1(a int, b int);
32
create table break_frm(a int, b int);
36
33
--echo "Flush the cache and recreate the table anew to be able to drop it"
38
show open tables like "t%";
39
create table t1(a int, b int, c int);
35
show open tables like "break_frm%";
36
create table break_frm(a int, b int, c int);
40
37
--echo "Try to select from the table. This should not crash the server"
41
select count(a) from t1;
38
select count(a) from break_frm;
40
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.*
41
create table break_frm(a int) engine=myisam;
42
drop table if exists break_frm;