• unknown's avatar
    Fix for bug#24219 ALTER TABLE ... RENAME TO ... , DISABLE KEYS leads to crash · d63fa0a4
    unknown authored
    (this is the 5.0 patch, because 4.1 differs)
      
    There was an improper order of doing chained operations.
      
    To the documentor: ENABLE|DISABLE KEYS combined with RENAME TO, and no other
    ALTER TABLE clause, leads to server crash independent of the presence of
    indices and data in the table.
    
    
    mysql-test/r/alter_table.result:
      post-merge fix
      my locale is utf8, and this breaks non-utf8 stuff when doing manual merge :(
    sql/sql_table.cc:
      If there is operation on the KEYS, first do it
      and then do a rename if there is such. Or, we will crash because
      the underlying table has changed.
    d63fa0a4
sql_table.cc 129 KB