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

@ -403,6 +403,11 @@ int mysql_update(THD *thd,
if (prune_partitions(thd, table, conds))
{
free_underlaid_joins(thd, select_lex);
query_plan.set_no_partitions();
if (thd->lex->describe)
goto exit_without_my_ok;
my_ok(thd); // No matching records
DBUG_RETURN(0);
}