summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2014-12-06 19:27:42 +0300
committerSergei Petrunia <psergey@askmonty.org>2014-12-06 19:27:42 +0300
commitdc259324d767e10f118c2d14dc905e1bb54aa58a (patch)
tree05457081ff73b28034d7b5088a2c56e9e67730f3 /sql/sql_explain.h
parent5ee1c25fa8043f81ad744d1c532b8c1dafa3b5ea (diff)
downloadmariadb-git-dc259324d767e10f118c2d14dc905e1bb54aa58a.tar.gz
EXPLAIN JSON: Print out the "expensive constant condition" attached to joins.
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index a7ef0beb649..c4bfa4d09bf 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -175,6 +175,9 @@ public:
void print_explain_json(Explain_query *query, Json_writer *writer,
bool is_analyze);
+ void print_explain_json_interns(Explain_query *query, Json_writer *writer,
+ bool is_analyze);
+
/* A flat array of Explain structs for tables. */
Explain_table_access** join_tabs;
uint n_join_tabs;
@@ -222,6 +225,9 @@ public:
*/
const char *message;
+ /* Expensive constant condition */
+ Item *exec_const_cond;
+
/* Global join attributes. In tabular form, they are printed on the first row */
bool using_temporary;
bool using_filesort;