summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index 42a1c360e5b..9e560c0be23 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -216,6 +216,7 @@ public:
message(NULL),
having(NULL), having_value(Item::COND_UNDEF),
using_temporary(false), using_filesort(false),
+ cost(0.0),
time_tracker(is_analyze),
aggr_tree(NULL)
{}
@@ -249,9 +250,10 @@ public:
bool using_temporary;
bool using_filesort;
+ double cost;
/* ANALYZE members */
Time_and_counter_tracker time_tracker;
-
+
/*
Part of query plan describing sorting, temp.table usage, and duplicate
removal
@@ -824,6 +826,9 @@ public:
ha_rows rows;
double filtered;
+ /* Total cost incurred during one execution of this select */
+ double cost;
+
/*
Contents of the 'Extra' column. Some are converted into strings, some have
parameters, values for which are stored below.