diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-10-05 13:44:01 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-10-05 13:44:01 +0400 |
commit | abcf14e595d35ebacb1d23cd4a6ced20080f8d4b (patch) | |
tree | 65e8aed264f230b9df1eb60902ed00d283d42cab /sql/sql_explain.cc | |
parent | 72bc6d7364f7cf6cae49c74cf1e56832053f91eb (diff) | |
download | mariadb-git-abcf14e595d35ebacb1d23cd4a6ced20080f8d4b.tar.gz |
MDEV-3798: EXPLAIN UPDATE/DELETE
- Handle the case when EXPLAIN UPDATE/DELETE has pruned away all partitions.
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r-- | sql/sql_explain.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc index 0623ef0be8e..28774ef2e99 100644 --- a/sql/sql_explain.cc +++ b/sql/sql_explain.cc @@ -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); |