diff options
author | unknown <acurtis@pcgem.rdg.cyberkinetica.com> | 2004-11-10 15:07:11 +0000 |
---|---|---|
committer | unknown <acurtis@pcgem.rdg.cyberkinetica.com> | 2004-11-10 15:07:11 +0000 |
commit | 97af0a0e8f3353cc849b33bf5b733764da7cb202 (patch) | |
tree | de1fa1728e015b8f24570971ae1ceb8920b875d4 /mysql-test/t | |
parent | 81880bab136d5df8cfdc47a953cff1442adb11f6 (diff) | |
download | mariadb-git-97af0a0e8f3353cc849b33bf5b733764da7cb202.tar.gz |
Bug#6031 - To drop database you have to execute DROP DATABASE command twice.
DROP DATABASE failed because of file ext not in TYPELIB of known extensions.
General solution - construct a TYPELIB at runtime instead of a static list.
mysql-test/r/ndb_basic.result:
Bug#6031
New test for bug
mysql-test/t/ndb_basic.test:
Bug#6031
New test for bug
sql/ha_ndbcluster.cc:
Cosmetic fix
sql/handler.cc:
Bug#6031
New function - ha_known_exts()
We can construct TYPELIB of known db file extensions.
sql/handler.h:
Bug#6031
New function - ha_known_exts()
sql/sql_db.cc:
Bug#6031
We use a constructed list of known extensions instead of a static list
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/ndb_basic.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_basic.test b/mysql-test/t/ndb_basic.test index b62d2a8e0e1..2671223ada8 100644 --- a/mysql-test/t/ndb_basic.test +++ b/mysql-test/t/ndb_basic.test @@ -361,6 +361,21 @@ drop table test.t1, t2; drop database mysqltest; # +# BUG#6031 - DROP DATABASE doesn't drop database on first try +# + +--disable_warnings +drop database if exists ndbtest1; +--enable_warnings + +create database ndbtest1; +use ndbtest1; +create table t1(id int) engine=ndbcluster; +drop database ndbtest1; +--error 1008 +drop database ndbtest1; + +# # test support of char(0) # |