1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

EXPLAIN FORMAT=JSON: support derived tables

This commit is contained in:
Sergei Petrunia
2014-11-28 22:23:29 +03:00
parent 3a5e080d4d
commit 2ac3b39e68
6 changed files with 141 additions and 9 deletions

View File

@@ -4268,6 +4268,8 @@ int st_select_lex_unit::save_union_explain(Explain_query *output)
{
SELECT_LEX *first= first_select();
Explain_union *eu= new (output->mem_root) Explain_union;
if (derived)
eu->is_derived_table= true;
for (SELECT_LEX *sl= first; sl; sl= sl->next_select())
eu->add_select(sl->select_number);