1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-3798: EXPLAIN UPDATE/DELETE

- if EXPLAIN DELETE prints "Deleting all rows", it should show the 
  expected number of rows in the rows column.
This commit is contained in:
Sergey Petrunya
2013-10-08 14:26:14 +04:00
parent 98a8642fe8
commit fda46df620
4 changed files with 28 additions and 5 deletions

View File

@@ -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;
}