mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for the fix for the bug #1209: SELECT DATABASE().
This commit is contained in:
@ -392,7 +392,10 @@ 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))
|
||||
{
|
||||
x_free(thd->db);
|
||||
thd->db= 0;
|
||||
}
|
||||
exit2:
|
||||
VOID(pthread_mutex_unlock(&LOCK_mysql_create_db));
|
||||
|
||||
|
Reference in New Issue
Block a user