1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix for bug #12533 (crash on DESCRIBE <view> after renaming base table column)

This commit is contained in:
andrey@lmy004.
2005-08-25 09:24:21 +02:00
parent a5ecf5f4b1
commit dde57f082b
3 changed files with 39 additions and 7 deletions

View File

@ -1985,13 +1985,15 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
lex->all_selects_list= lsel;
res= open_normal_and_derived_tables(thd, show_table_list,
MYSQL_LOCK_IGNORE_FLUSH);
if (schema_table->process_table(thd, show_table_list,
/*
get_all_tables() returns 1 on failure and 0 on success thus
return only these and not the result code of ::process_table()
*/
error= test(schema_table->process_table(thd, show_table_list,
table, res, show_table_list->db,
show_table_list->alias))
goto err;
show_table_list->alias));
close_thread_tables(thd);
show_table_list->table= 0;
error= 0;
goto err;
}
@ -2090,11 +2092,12 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
lex->derived_tables= 0;
res= open_normal_and_derived_tables(thd, show_table_list,
MYSQL_LOCK_IGNORE_FLUSH);
if (schema_table->process_table(thd, show_table_list, table,
res= schema_table->process_table(thd, show_table_list, table,
res, base_name,
show_table_list->alias))
goto err;
show_table_list->alias);
close_thread_tables(thd);
if (res)
goto err;
}
}
}