diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2016-08-08 23:02:52 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2016-08-08 23:02:52 +0300 |
commit | a2f245e49f8747f9fd202cae451861a8371e6151 (patch) | |
tree | a558ce6dd122e8f20e63d1cf1c4e31543b6cec24 /sql/sql_explain.h | |
parent | e1c92a6ca9130ae07c9fa596c969a4b4f3a95ee3 (diff) | |
download | mariadb-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.h | 2 |
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 |