Commit b7f06b94 authored by unknown's avatar unknown

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

parent 1d3d64d6
...@@ -392,7 +392,10 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent) ...@@ -392,7 +392,10 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
exit: exit:
start_waiting_global_read_lock(thd); start_waiting_global_read_lock(thd);
if (thd->db && !strcmp(thd->db, db)) if (thd->db && !strcmp(thd->db, db))
{
x_free(thd->db);
thd->db= 0; thd->db= 0;
}
exit2: exit2:
VOID(pthread_mutex_unlock(&LOCK_mysql_create_db)); VOID(pthread_mutex_unlock(&LOCK_mysql_create_db));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment