summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2013-05-27 09:31:41 +0400
committerSergey Petrunya <psergey@askmonty.org>2013-05-27 09:31:41 +0400
commite21b32d7faa431242b03783d4d4813b4291403ba (patch)
treecea498c279e59c51bcf6ed835fcfb50c5d56537e /sql/sql_select.h
parent7202c21b343c14d0f1fc868fc7789486338a656f (diff)
parentd2995031d9214206689660069024525808c8a683 (diff)
downloadmariadb-git-e21b32d7faa431242b03783d4d4813b4291403ba.tar.gz
[SHOW] EXPLAIN UPDATE/DELETE - Merge with 10.0-base
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 950c48d6ea1..5a3dbccb97f 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -1828,6 +1828,28 @@ void push_index_cond(JOIN_TAB *tab, uint keyno);
#define OPT_LINK_EQUAL_FIELDS 1
+/* EXPLAIN-related utility functions */
+int print_explain_message_line(select_result_sink *result,
+ uint8 options,
+ uint select_number,
+ const char *select_type,
+ const char *message);
+void explain_append_mrr_info(QUICK_RANGE_SELECT *quick, String *res);
+int print_explain_row(select_result_sink *result,
+ uint8 options,
+ uint select_number,
+ const char *select_type,
+ const char *table_name,
+ //const char *partitions, (todo)
+ enum join_type jtype,
+ const char *possible_keys,
+ const char *index,
+ const char *key_len,
+ const char *ref,
+ ha_rows rows,
+ const char *extra);
+void make_possible_keys_line(TABLE *table, key_map possible_keys, String *line);
+
/****************************************************************************
Temporary table support for SQL Runtime
***************************************************************************/