summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
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.h
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.h')
-rw-r--r--sql/sql_lex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 70a793541af..5e5f36172b6 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -2461,6 +2461,7 @@ struct LEX: public Query_tables_list
uint table_count;
uint8 describe;
bool analyze_stmt; /* TRUE<=> this is "ANALYZE $stmt" */
+ bool explain_json;
/*
A flag that indicates what kinds of derived tables are present in the
query (0 if no derived tables, otherwise a combination of flags