• Mattias Jonsson's avatar
    Bug#13593865 - 64037: CRASH IN HA_PARTITION::CREATE_HANDLERS ON · 7ebeb143
    Mattias Jonsson authored
                          ALTER TABLE AFTER DROP PARTITION
    Bug#13608188 - 64038: CRASH IN HANDLER::HA_THD ON ALTER TABLE AFTER
                          REPAIR NON-EXISTING PARTITION
    
    Backport of bug#13357766 from -trunk to -5.5.
    
    The state of some partitions was not reset on failure, leading
    to invalid states of partitions in consequent statements.
    
    Fixed by reverting back to original state for all partitions
    if not all partition names was resolved.
    
    Also adding extra security by forcing tables to be reopened
    in case of error in mysql_alter_table.
    
    (There is also removal of \r at the end of some lines.)
    7ebeb143
partition_error.test 55.8 KB