1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

fix for bug#14089 FROM list subquery always fails when

information_schema is current database
  skip the check of I_S tables if table is derived table
This commit is contained in:
gluh@eagle.intranet.mysql.r18.ru
2005-10-21 13:14:54 +05:00
parent 977187eb30
commit e8d52711ad
3 changed files with 26 additions and 2 deletions

View File

@@ -6197,8 +6197,8 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
ptr->force_index= test(table_options & TL_OPTION_FORCE_INDEX);
ptr->ignore_leaves= test(table_options & TL_OPTION_IGNORE_LEAVES);
ptr->derived= table->sel;
if (!my_strcasecmp(system_charset_info, ptr->db,
information_schema_name.str))
if (!ptr->derived && !my_strcasecmp(system_charset_info, ptr->db,
information_schema_name.str))
{
ST_SCHEMA_TABLE *schema_table= find_schema_table(thd, ptr->table_name);
if (!schema_table ||