diff options
Diffstat (limited to 'sql/sql_show.h')
-rw-r--r-- | sql/sql_show.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sql/sql_show.h b/sql/sql_show.h index 3d7a4d1146c..89fbcd1a547 100644 --- a/sql/sql_show.h +++ b/sql/sql_show.h @@ -155,28 +155,31 @@ THD *find_thread_by_id(longlong id, bool query_id= false); class select_result_explain_buffer; /* - SHOW EXPLAIN request object. + SHOW EXPLAIN/SHOW ANALYZE request object. */ class Show_explain_request : public Apc_target::Apc_call { public: - THD *target_thd; /* thd that we're running SHOW EXPLAIN for */ - THD *request_thd; /* thd that run SHOW EXPLAIN command */ + THD *target_thd; /* thd that we're running SHOW EXPLAIN/ANALYZE for */ + THD *request_thd; /* thd that run SHOW EXPLAIN/ANALYZE command */ + /* FALSE for SHOW EXPLAIN, TRUE - for SHOW ANALYZE*/ + bool is_analyze; + /* If true, there was some error when producing EXPLAIN output. */ bool failed_to_produce; - /* SHOW EXPLAIN will be stored here */ + /* SHOW EXPLAIN/ANALYZE will be stored here */ select_result_explain_buffer *explain_buf; - /* Query that we've got SHOW EXPLAIN for */ + /* Query that we've got SHOW EXPLAIN/ANALYZE for */ String query_str; - /* Overloaded virtual function */ - void call_in_target_thread(); + void call_in_target_thread() override; }; + /** Condition pushdown used for INFORMATION_SCHEMA / SHOW queries. This structure is to implement an optimization when |