From d5fbfb9a93704ebe4b1df37f74850a7464140991 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Fri, 28 Nov 2014 02:36:31 +0300 Subject: EXPLAIN FORMAT=JSON: Add support for single-table UPDATE/DELETE. --- sql/sql_select.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'sql/sql_select.h') diff --git a/sql/sql_select.h b/sql/sql_select.h index ac1ea05a498..9463005b2ba 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1832,8 +1832,10 @@ inline bool optimizer_flag(THD *thd, uint flag) return (thd->variables.optimizer_switch & flag); } +/* int print_fake_select_lex_join(select_result_sink *result, bool on_the_fly, SELECT_LEX *select_lex, uint8 select_options); +*/ uint get_index_for_order(ORDER *order, TABLE *table, SQL_SELECT *select, ha_rows limit, ha_rows *scanned_limit, @@ -1861,22 +1863,8 @@ int print_explain_message_line(select_result_sink *result, ha_rows *rows, const char *message); void explain_append_mrr_info(QUICK_RANGE_SELECT *quick, String *res); -int print_explain_row(select_result_sink *result, - uint8 options, bool is_analyze, - uint select_number, - const char *select_type, - const char *table_name, - const char *partitions, - enum join_type jtype, - const char *possible_keys, - const char *index, - const char *key_len, - const char *ref, - ha_rows *rows, - ha_rows *r_rows, - double r_filtered, - const char *extra); -void make_possible_keys_line(TABLE *table, key_map possible_keys, String *line); +int append_possible_keys(MEM_ROOT *alloc, String_list &list, TABLE *table, + key_map possible_keys); /**************************************************************************** Temporary table support for SQL Runtime -- cgit v1.2.1