mirror of
https://github.com/MariaDB/server.git
synced 2025-10-12 12:25:37 +03:00
EXPLAIN UPDATE/DELETE
- Make EXPLAIN UPDATE/DELETE work inside SPs - Return correct error code from mysql_delete() - EXPLAIN <multi-DELETE> will create a multi_delete object (as it affects the optimization). select_result will be only used for producing EXPLAIN output.
This commit is contained in:
@@ -22990,10 +22990,13 @@ int JOIN::save_qpf(QPF_query *output, bool need_tmp_table, bool need_order,
|
||||
unit= unit->next_unit())
|
||||
{
|
||||
/*
|
||||
Display subqueries only if they are not parts of eliminated WHERE/ON
|
||||
clauses.
|
||||
Display subqueries only if
|
||||
(1) they are not parts of ON clauses that were eliminated by table
|
||||
elimination.
|
||||
(2) they are not merged derived tables
|
||||
*/
|
||||
if (!(unit->item && unit->item->eliminated))
|
||||
if (!(unit->item && unit->item->eliminated) && // (1)
|
||||
(!unit->derived || unit->derived->is_materialized_derived())) // (2)
|
||||
{
|
||||
qp_node->add_child(unit->first_select()->select_number);
|
||||
}
|
||||
|
Reference in New Issue
Block a user