diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-05-13 14:25:06 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-05-13 14:25:06 +0300 |
commit | b30a013142179a4bf72ce1779bea84596ba28685 (patch) | |
tree | c4509170481b121bfdd7559fc15df42be76af146 /sql/sql_explain.cc | |
parent | 0186b0a07760b734af61a9e45ebdb5a077d1872d (diff) | |
parent | 38f6c47f8a0a9bc313e4875c4676985249771c76 (diff) | |
download | mariadb-git-b30a013142179a4bf72ce1779bea84596ba28685.tar.gz |
Merge 10.4 into 10.5
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r-- | sql/sql_explain.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc index da727ba54fc..353217982e2 100644 --- a/sql/sql_explain.cc +++ b/sql/sql_explain.cc @@ -1884,6 +1884,11 @@ void Explain_table_access::print_explain_json(Explain_query *query, /* This is a derived table. Print its contents here */ writer->add_member("materialized").start_object(); Explain_node *node= query->get_node(derived_select_number); + if (node->get_type() == Explain_node::EXPLAIN_SELECT && + ((Explain_select*)node)->is_lateral) + { + writer->add_member("lateral").add_ll(1); + } node->print_explain_json(query, writer, is_analyze); writer->end_object(); } |