mirror of
https://github.com/MariaDB/server.git
synced 2025-10-18 09:50:33 +03:00
* print "table doesn't exist in engine" when a table doesn't exist in the engine, instead of "file not found" (if no file was involved) * print a complete filename that cannot be found ('t1.MYI', not 't1') * it's not an error for a DROP if a table doesn't exist in the engine (or some table files cannot be found) - if the DROP succeeded regardless
25 lines
605 B
Plaintext
25 lines
605 B
Plaintext
#
|
|
# 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;
|
|
let $MYSQLD_DATADIR= `select @@datadir`;
|
|
--remove_file $MYSQLD_DATADIR/test/t1.MYI
|
|
drop table if exists t1;
|
|
create table t1 (a int) engine=myisam;
|
|
--remove_file $MYSQLD_DATADIR/test/t1.MYI
|
|
--error ER_FILE_NOT_FOUND
|
|
select * from t1;
|
|
drop table t1;
|
|
create table t1 (a int) engine=myisam;
|
|
--remove_file $MYSQLD_DATADIR/test/t1.MYD
|
|
--error 29
|
|
select * from t1;
|
|
drop table t1;
|
|
--error ER_BAD_TABLE_ERROR
|
|
drop table t1;
|