1
0
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:
jimw@mysql.com
2005-12-12 11:57:07 -08:00
34 changed files with 1007 additions and 128 deletions

View File

@ -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;
}