mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
A fix for a crashing bug in EXPLAIN on derived tables with a join.
This commit is contained in:
@@ -194,7 +194,10 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
|
||||
{
|
||||
// to fix a problem in EXPLAIN
|
||||
if (tables)
|
||||
tables->table_list->table=tables->table;
|
||||
{
|
||||
for (TABLE_LIST *cursor= tables; cursor; cursor= cursor->next)
|
||||
cursor->table_list->table=cursor->table;
|
||||
}
|
||||
}
|
||||
else
|
||||
unit->exclude_level();
|
||||
|
||||
Reference in New Issue
Block a user