diff options
author | unknown <msvensson@neptunus.homeip.net> | 2005-02-17 14:22:44 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.homeip.net> | 2005-02-17 14:22:44 +0100 |
commit | 329076db748e99e8ce7970094582e5e156db6d3f (patch) | |
tree | c7ec2f3d181a0fbc063ad96824be7fea3735a9bd /mysql-test/t/ndb_autodiscover.test | |
parent | 841a9c3885d2967677118f59a044857ba702dbdb (diff) | |
download | mariadb-git-329076db748e99e8ce7970094582e5e156db6d3f.tar.gz |
BUG#8547: Wrong errormessage when dropping table that does not exist in NDB
- Added tescases
- Added handling of HA_ERR_NO_SUCH_TABLE in mysql_rm_table_part2 so that
error messages now are consistent
mysql-test/r/ndb_autodiscover.result:
Added tess for dropping tables that does not exists in engine
mysql-test/t/ndb_autodiscover.test:
Added tess for dropping tables that does not exists in engine
sql/ha_ndbcluster.cc:
Updated delete_table and drop_table to retrn HA_ERR_NO_SUCH_TABLE if table was not found in engine.
Clear error after calling mysql_rm_table_part2 from mysql_find_files
sql/sql_table.cc:
Added handling of the case when table does not exist in storage engine but on disk as .frm file.
Diffstat (limited to 'mysql-test/t/ndb_autodiscover.test')
-rw-r--r-- | mysql-test/t/ndb_autodiscover.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_autodiscover.test b/mysql-test/t/ndb_autodiscover.test index d305c1a9dd7..211d8344471 100644 --- a/mysql-test/t/ndb_autodiscover.test +++ b/mysql-test/t/ndb_autodiscover.test @@ -209,8 +209,30 @@ select * from t4; select * from t4; show status like 'handler_discover%'; +--error 1051 drop table t4; +create table t4( + id int not null primary key, + name char(27) +) engine=ndb; +insert into t4 values (1, "Automatic"); +select * from t4; + +# Remove the table from NDB +system exec $NDB_TOOLS_DIR/ndb_drop_table --no-defaults -d test t4 >> $NDB_TOOLS_OUTPUT ; + +--error 1146 +select * from t4; + +drop table if exists t4; + +# Test that dropping a table that does not exists +# on disk or in NDB gives same result as above +--error 1051 +drop table t5; +drop table if exists t5; + ####################################################### # Test that a table that has been dropped from NDB |