1
0
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:
unknown
2003-04-10 21:05:28 +03:00
parent 9a86ad60af
commit c11f200890
3 changed files with 10 additions and 1 deletions

View File

@@ -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();