summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-02-08 15:14:14 -0800
committerunknown <jimw@mysql.com>2005-02-08 15:14:14 -0800
commit1de817e9c467178b82690618223cf320d48a4b0b (patch)
tree6a89a3a3531f64e04508caa83d1b54a1482520a2 /sql/mysql_priv.h
parentffe417fddeb68274166153a357d9d534675d1823 (diff)
downloadmariadb-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 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 6218bc49f53..f851e36dcad 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -750,7 +750,7 @@ bool close_temporary_table(THD *thd, const char *db, const char *table_name);
void close_temporary(TABLE *table, bool delete_table=1);
bool rename_temporary_table(THD* thd, TABLE *table, const char *new_db,
const char *table_name);
-void remove_db_from_cache(const my_string db);
+void remove_db_from_cache(const char *db);
void flush_tables();
bool remove_table_from_cache(THD *thd, const char *db, const char *table,
bool return_if_owned_by_thd=0);