• andrey@example.com's avatar
    Fix for bug#24395: · 100dd45e
    andrey@example.com authored
    ALTER TABLE DISABLE KEYS doesn't work when modifying the table
      
    ENABLE|DISABLE KEYS combined with another ALTER TABLE option, different
    than RENAME TO did nothing. Also, if the table had disabled keys
    and was ALTER-ed then the end table was with enabled keys.
      
    Fixed by checking whether the table had disabled keys and enabling them
    in the copied table.
    100dd45e
sql_table.cc 114 KB