This patch complements the patch for MDEV-24823.

This commit is contained in:
Igor Babaev 2021-04-23 14:32:20 -07:00
parent 42f8548ff6
commit 1288dfffe7

View file

@ -845,7 +845,7 @@ int mysql_multi_delete_prepare(THD *thd)
Multi-delete can't be constructed over-union => we always have
single SELECT on top and have to check underlying SELECTs of it
*/
lex->select_lex.exclude_from_table_unique_test= TRUE;
lex->select_lex.set_unique_exclude();
/* Fix tables-to-be-deleted-from list to point at opened tables */
for (target_tbl= (TABLE_LIST*) aux_tables;
target_tbl;