EXPLAIN JSON: Print out the "expensive constant condition" attached to joins.

This commit is contained in:
Sergei Petrunia 2014-12-06 19:27:42 +03:00
commit dc259324d7
5 changed files with 104 additions and 5 deletions

View file

@ -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;