• Martin Hansson's avatar
    Bug#54543: update ignore with incorrect subquery leads to assertion failure: · 446cc653
    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.
    446cc653
multi_update.test 20.6 KB