mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql.com:/home/jimw/my/mysql-5.0-clean
into mysql.com:/home/jimw/my/mysql-5.1-clean
This commit is contained in:
@ -1162,10 +1162,12 @@ bool mysql_change_db(THD *thd, const char *name, bool no_access_check)
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
end:
|
||||
x_free(thd->db);
|
||||
if (!(thd->slave_thread))
|
||||
x_free(thd->db);
|
||||
if (dbname && dbname[0] == 0)
|
||||
{
|
||||
x_free(dbname);
|
||||
if (!(thd->slave_thread))
|
||||
x_free(dbname);
|
||||
thd->db= NULL;
|
||||
thd->db_length= 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user