• Martin Hansson's avatar
    Bug#54543: update ignore with incorrect subquery leads to assertion failure: · e9afcbf6
    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.
    e9afcbf6
sql_select.cc 549 KB