summaryrefslogtreecommitdiff
path: root/sql/sql_explain.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2013-10-08 14:26:14 +0400
committerSergey Petrunya <psergey@askmonty.org>2013-10-08 14:26:14 +0400
commitfda46df62071f54ebc4d806c6d9caf031d801150 (patch)
treeec7c5496c8e627fa46ba6b520adbc611417fce07 /sql/sql_explain.cc
parent98a8642fe827fd9ac16bdfaf556599fa509d4180 (diff)
downloadmariadb-git-fda46df62071f54ebc4d806c6d9caf031d801150.tar.gz
MDEV-3798: EXPLAIN UPDATE/DELETE
- if EXPLAIN DELETE prints "Deleting all rows", it should show the expected number of rows in the rows column.
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r--sql/sql_explain.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc
index 2bd6a6bef25..a8afc0ac6d3 100644
--- a/sql/sql_explain.cc
+++ b/sql/sql_explain.cc
@@ -778,7 +778,7 @@ int Explain_delete::print_explain(Explain_query *query,
const char *msg= "Deleting all rows";
int res= print_explain_message_line(output, explain_flags,
1 /*select number*/,
- select_type, msg);
+ select_type, &rows, msg);
return res;
}
@@ -797,11 +797,13 @@ int Explain_update::print_explain(Explain_query *query,
if (impossible_where || no_partitions)
{
const char *msg= impossible_where ?
- "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);
+ select_type,
+ NULL, /* rows */
+ msg);
return res;
}