1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix for the bug #1209: SELECT DATABASE().

This commit is contained in:
unknown
2003-09-08 17:30:53 +05:00
parent ca2ab3537c
commit 1d3d64d69b
4 changed files with 33 additions and 2 deletions

View File

@@ -391,6 +391,8 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
exit:
start_waiting_global_read_lock(thd);
if (thd->db && !strcmp(thd->db, db))
thd->db= 0;
exit2:
VOID(pthread_mutex_unlock(&LOCK_mysql_create_db));