1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +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

@@ -766,9 +766,11 @@ int Explain_update::print_explain(Explain_query *query,
uint8 explain_flags)
{
StringBuffer<64> extra_str;
if (impossible_where)
if (impossible_where || no_partitions)
{
const char *msg= "Impossible where";
const char *msg= impossible_where ?
"Impossible where" :
"No matching rows after partition pruning";
int res= print_explain_message_line(output, explain_flags,
1 /*select number*/,
select_type, msg);