summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2014-05-27 21:04:45 +0400
committerSergei Petrunia <psergey@askmonty.org>2014-05-27 21:04:45 +0400
commit5cfd3270ec79238b27765af3062ae7d97f6f06d0 (patch)
tree2bfa2bb941567c1eb7f81d7b86962973e6fbf1c6 /sql/sql_lex.cc
parent0925ab9d88f4328810d25392333a4cac11c6e694 (diff)
downloadmariadb-git-10.1-explain-json.tar.gz
MDEV-6109: EXPLAIN JSON10.1-explain-json
- First code, "EXPLAIN FORMAT=JSON stmt" and "ANALYZE FORMAT=JSON stmt" work for basic queries. Complex constructs (e.g subqueries, etc) not yet supported. - No test infrastructure yet
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index cd9f9238f71..1e095627245 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -484,6 +484,7 @@ void lex_start(THD *thd)
lex->select_lex.group_list_ptrs->clear();
lex->describe= 0;
lex->analyze_stmt= 0;
+ lex->explain_json= false;
lex->subqueries= FALSE;
lex->context_analysis_only= 0;
lex->derived_tables= 0;