2006-05-03 15:59:17 +03:00
|
|
|
#
|
|
|
|
# Test how DROP TABLE works if the index or data file doesn't exists
|
|
|
|
|
|
|
|
# Initialise
|
|
|
|
--disable_warnings
|
|
|
|
drop table if exists t1,t2;
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
create table t1 (a int) engine=myisam;
|
2007-12-12 18:19:24 +01:00
|
|
|
let $MYSQLD_DATADIR= `select @@datadir`;
|
|
|
|
--remove_file $MYSQLD_DATADIR/test/t1.MYI
|
2006-05-03 15:59:17 +03:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (a int) engine=myisam;
|
2007-12-12 18:19:24 +01:00
|
|
|
--remove_file $MYSQLD_DATADIR/test/t1.MYI
|
2009-09-17 16:33:23 +05:00
|
|
|
--error ER_BAD_TABLE_ERROR,6
|
2006-05-03 15:59:17 +03:00
|
|
|
drop table t1;
|
|
|
|
create table t1 (a int) engine=myisam;
|
2007-12-12 18:19:24 +01:00
|
|
|
--remove_file $MYSQLD_DATADIR/test/t1.MYD
|
2009-09-17 16:33:23 +05:00
|
|
|
--error ER_BAD_TABLE_ERROR,6,29
|
2006-05-03 15:59:17 +03:00
|
|
|
drop table t1;
|
2009-09-17 16:33:23 +05:00
|
|
|
--error ER_BAD_TABLE_ERROR
|
2006-05-03 15:59:17 +03:00
|
|
|
drop table t1;
|