Commit b9a75862 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

MDEV-7613: MariaDB 5.5.40 server crash on update table left join with a view

Multi-update do not need full list of leaf tables. It also do not use it on prepare (mysql_multi_update_prepare()).
parent cc84ac3b
This diff is collapsed.
This diff is collapsed.
......@@ -646,9 +646,7 @@ JOIN::prepare(Item ***rref_pointer_array,
if (!(select_options & OPTION_SETUP_TABLES_DONE) &&
setup_tables_and_check_access(thd, &select_lex->context, join_list,
tables_list, select_lex->leaf_tables,
FALSE, SELECT_ACL, SELECT_ACL,
(thd->lex->sql_command ==
SQLCOM_UPDATE_MULTI)))
FALSE, SELECT_ACL, SELECT_ACL, FALSE))
DBUG_RETURN(-1);
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment