mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#54422 query with = 'variables'
During creation of the table list of processed tables hidden I_S table 'VARIABLES' is erroneously added into the table list. it leads to ER_UNKNOWN_TABLE error in TABLE_LIST::add_table_to_list() function. The fix is to skip addition of hidden I_S tables into the table list.
This commit is contained in:
@ -2921,7 +2921,9 @@ make_table_name_list(THD *thd, List<LEX_STRING> *table_names, LEX *lex,
|
||||
{
|
||||
if (with_i_schema)
|
||||
{
|
||||
if (find_schema_table(thd, lookup_field_vals->table_value.str))
|
||||
ST_SCHEMA_TABLE *schema_table=
|
||||
find_schema_table(thd, lookup_field_vals->table_value.str);
|
||||
if (schema_table && !schema_table->hidden)
|
||||
{
|
||||
if (table_names->push_back(&lookup_field_vals->table_value))
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user