Commit 5e55cd5d authored by unknown's avatar unknown

As far as we cut off derived table branch, we have to close JOINs (BUG#2141)

(test case is absend because it is multi-thread and very big)


sql/sql_derived.cc:
  As far as we cut off this branch, we have to close JOINs
parent d4a7fa95
......@@ -198,7 +198,10 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
}
}
else
{
unit->exclude_tree();
unit->cleanup();
}
org_table_list->db= (char *)"";
// Force read of table stats in the optimizer
table->file->info(HA_STATUS_VARIABLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment