• Andrei Elkin's avatar
    MDEV-26833 Missed statement rollback in case transaction drops or create temporary table · 42ae7659
    Andrei Elkin authored
    When transaction creates or drops temporary tables and afterward its statement
    faces an error even the transactional table statement's cached ROW
    format events get involved into binlog and are visible after the transaction's commit.
    
    Fixed with proper analysis of whether the errored-out statement needs
    to be rolled back in binlog.
    For instance a fact of already cached CREATE or DROP for temporary
    tables by previous statements alone
    does not cause to retain the being errored-out statement events in the
    cache.
    Conversely, if the statement creates or drops a temporary table
    itself it can't be rolled back - this rule remains.
    42ae7659
sp_head.cc 120 KB