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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user