• Marko Mäkelä's avatar
    Bug#54679: alter table causes compressed row_format to revert to compact · 82e951d5
    Marko Mäkelä authored
    ha_innobase::create(): Add the local variable row_type = form->s->row_type.
    Adjust it to ROW_TYPE_COMPRESSED when ROW_FORMAT is not specified or inherited
    but KEY_BLOCK_SIZE is. Observe the inherited ROW_FORMAT even when it is not
    explicitly specified.
    
    innodb_bug54679.test: New test, to test the bug and to ensure that there are
    no regressions. (The only difference in the test result without the patch
    applied is that the first ALTER TABLE changes ROW_FORMAT to Compact.)
    82e951d5
innodb_bug54679.test 3.67 KB