1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Additional fix for bug#22369

This commit is contained in:
andrey@example.com
2006-12-07 13:57:39 +01:00
parent d1c9edf47b
commit 12a68db3d3
3 changed files with 11 additions and 2 deletions

View File

@@ -6527,6 +6527,15 @@ view_err:
{
if (! table)
{
if (new_name != table_name || new_db != db)
{
table_list->alias= new_name;
table_list->table_name= new_name;
table_list->table_name_length= strlen(new_name);
table_list->db= new_db;
table_list->db_length= strlen(new_db);
}
VOID(pthread_mutex_unlock(&LOCK_open));
if (! (table= open_ltable(thd, table_list, TL_WRITE_ALLOW_READ)))
goto err;