1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Fix for bug #7213: information_schema: redundant non-standard TABLE_NAMES table

This commit is contained in:
gluh@gluh.mysql.r18.ru
2004-12-18 13:49:13 +03:00
parent bf0104045d
commit bc7860c80c
5 changed files with 31 additions and 23 deletions

View File

@@ -5280,7 +5280,9 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
information_schema_name.str))
{
ST_SCHEMA_TABLE *schema_table= find_schema_table(thd, ptr->real_name);
if (!schema_table)
if (!schema_table ||
(schema_table->hidden &&
lex->orig_sql_command == SQLCOM_END)) // not a 'show' command
{
my_error(ER_UNKNOWN_TABLE, MYF(0),
ptr->real_name, information_schema_name.str);