• Martin Hansson's avatar
    Bug#54543: update ignore with incorrect subquery leads to assertion failure: · 3d5b9792
    Martin Hansson authored
    inited==INDEX
    
    When an error occurs while sending the data in a temporary table there was no
    cleanup performed. This caused a failed assertion in the case when different
    access methods were used for populating the table vs. retrieving the data from
    the table if IGNORE was specified and sql_safe_updates = 0. In this case
    execution continues, but the handler expects to continue with the access
    method used for row retrieval.
    
    Fixed by doing the cleanup even if errors occur.
    3d5b9792
multi_update.test 20.6 KB