• unknown's avatar
    Follow-up for the fix for bug #18153 "ALTER/OPTIMIZE/REPAIR on transactional · bb7e6828
    unknown authored
    tables corrupt triggers".
    
    It turned out that we also have relied at certain places that
    (new_table != table_name) were always true on Windows and for transactional
    tables. Since our fix for the bug brakes this assumption we have to add new
    flag to pass this information around.
    This code needs to be refactored but I dare not to do this in 5.0.
    
    
    sql/sql_table.cc:
      mysql_alter_table():
        Follow-up for the fix for bug #18153 "ALTER/OPTIMIZE/REPAIR on
        transactional tables corrupt triggers". It turned out that we also have
        relied at certain places that (new_table != table_name) were always true
        on Windows and for transactional tables. Since our fix for the bug brakes
        this assumption we have to add new flag to pass this information around.
        This code needs to be refactored but I dare not to do this in 5.0.
    bb7e6828
sql_table.cc 128 KB