1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-3798: EXPLAIN UPDATE/DELETE

- Handle the case when EXPLAIN UPDATE/DELETE has pruned away all partitions.
This commit is contained in:
Sergey Petrunya
2013-10-05 13:44:01 +04:00
parent 72bc6d7364
commit abcf14e595
7 changed files with 73 additions and 9 deletions

View File

@ -2380,8 +2380,10 @@ class Update_plan
{
protected:
bool impossible_where;
bool no_partitions;
public:
bool updating_a_view;
TABLE *table;
SQL_SELECT *select;
uint index;
@ -2395,14 +2397,17 @@ public:
key_map possible_keys;
bool using_filesort;
/* Set this plan to be a plan to do nothing because of impossible WHRE*/
/* Set this plan to be a plan to do nothing because of impossible WHERE */
void set_impossible_where() { impossible_where= true; }
void set_no_partitions() { no_partitions= true; }
void save_explain_data(Explain_query *query);
void save_explain_data_intern(Explain_query *query, Explain_update *eu);
virtual ~Update_plan() {}
Update_plan() : impossible_where(false), using_filesort(false) {}
Update_plan() :
impossible_where(false), no_partitions(false), using_filesort(false)
{}
};