summaryrefslogtreecommitdiff
path: root/sql/sql_explain.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-05-13 14:25:06 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-05-13 14:25:06 +0300
commitb30a013142179a4bf72ce1779bea84596ba28685 (patch)
treec4509170481b121bfdd7559fc15df42be76af146 /sql/sql_explain.cc
parent0186b0a07760b734af61a9e45ebdb5a077d1872d (diff)
parent38f6c47f8a0a9bc313e4875c4676985249771c76 (diff)
downloadmariadb-git-b30a013142179a4bf72ce1779bea84596ba28685.tar.gz
Merge 10.4 into 10.5
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r--sql/sql_explain.cc5
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();
}