• Sergey Glukhov's avatar
    Bug#39372 "Smart" ALTER TABLE not so smart after all. · 1e4f12d6
    Sergey Glukhov authored
    The problem was that PACK_KEYS and MAX_ROWS clause in ALTER TABLE did not trigger
    table reconstruction.
    The fix is to rebuild a table if PACK_KEYS or MAX_ROWS are specified.
    
    
    mysql-test/r/alter_table.result:
      test result
    mysql-test/t/alter_table.test:
      test case
    sql/sql_table.cc:
      The problem was that PACK_KEYS and MAX_ROWS clause in ALTER TABLE did not trigger
      table reconstruction.
      The fix is to rebuild a table if PACK_KEYS or MAX_ROWS are specified.
    1e4f12d6
sql_table.cc 237 KB