• Oleg Smirnov's avatar
    MDEV-28246 Optimizer uses all partitions after upgrade to 10.3 · 40d9dbb2
    Oleg Smirnov authored
    Cause: a copy of the joined TABLE_LIST is created during multi_update::prepare
    and TABLE::pos_in_table_list of the tables are set to point to the new
    TABLE_LIST object. This prevents some optimization steps to perform correctly.
    Solution: do not update pos_in_table_list during multi_update::prepare
    40d9dbb2
sql_update.cc 92.3 KB