diff options
author | unknown <jimw@mysql.com> | 2005-02-08 15:14:14 -0800 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-02-08 15:14:14 -0800 |
commit | 1de817e9c467178b82690618223cf320d48a4b0b (patch) | |
tree | 6a89a3a3531f64e04508caa83d1b54a1482520a2 /mysql-test/t/lowercase_table2.test | |
parent | ffe417fddeb68274166153a357d9d534675d1823 (diff) | |
download | mariadb-git-1de817e9c467178b82690618223cf320d48a4b0b.tar.gz |
Fix removal of tables from cache when the database they are contained
within is dropped and lower_case_table_names is set. (Bug #8355)
mysql-test/t/lowercase_table2.test:
Add new regression test
mysql-test/r/lowercase_table2.result:
Add results for regression test
sql/mysql_priv.h:
Change remove_db_from_cache() to use char* instead of my_string
sql/sql_base.cc:
Lowercase database name in remove_db_from_cache so
that all of the correct entries are removed.
Diffstat (limited to 'mysql-test/t/lowercase_table2.test')
-rw-r--r-- | mysql-test/t/lowercase_table2.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/lowercase_table2.test b/mysql-test/t/lowercase_table2.test index a766e39abab..eff5f2a99ec 100644 --- a/mysql-test/t/lowercase_table2.test +++ b/mysql-test/t/lowercase_table2.test @@ -111,3 +111,20 @@ select * from T1; alter table T1 add index (a); select * from T1; drop table T1; + +# +# Bug #8355: Tables not dropped from table cache on drop db +# +create database mysqltest_LC2; +use mysqltest_LC2; +create table myUC (i int); +insert into myUC values (1),(2),(3); +select * from myUC; +use test; +drop database mysqltest_LC2; +create database mysqltest_LC2; +use mysqltest_LC2; +create table myUC (i int); +select * from myUC; +use test; +drop database mysqltest_LC2; |