summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2016-08-08 23:02:52 +0300
committerSergei Petrunia <psergey@askmonty.org>2016-08-08 23:02:52 +0300
commita2f245e49f8747f9fd202cae451861a8371e6151 (patch)
treea558ce6dd122e8f20e63d1cf1c4e31543b6cec24 /sql/sql_explain.h
parente1c92a6ca9130ae07c9fa596c969a4b4f3a95ee3 (diff)
downloadmariadb-git-a2f245e49f8747f9fd202cae451861a8371e6151.tar.gz
MDEV-10372: EXPLAIN fixes for recursive CTEs, including FORMAT=JSON
- Tabular EXPLAIN now prints "RECURSIVE UNION". - There is a basic implementation of EXPLAIN FORMAT=JSON. - it produces "recursive_union" JSON struct - No other details or ANALYZE support, yet.
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index abdb1bb978b..5793599f4e1 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -327,6 +327,7 @@ class Explain_union : public Explain_node
public:
Explain_union(MEM_ROOT *root, bool is_analyze) :
Explain_node(root),
+ is_recursive_cte(false),
fake_select_lex_explain(root, is_analyze)
{}
@@ -362,6 +363,7 @@ public:
const char *fake_select_type;
bool using_filesort;
bool using_tmp;
+ bool is_recursive_cte;
/*
Explain data structure for "fake_select_lex" (i.e. for the degenerate