• Sergei Golubchik's avatar
    MDEV-14081 ALTER TABLE CHANGE COLUMN Corrupts Index Leading to Crashes in 10.2 · 607d8f9e
    Sergei Golubchik authored
    remove remnants of 10.0 bugfix, incorrectly merged into 10.2
    
    Using col_names[i] was obviously, wrong, must've been col_names[ifield->col_no].
    incorrect column name resulted in innodb having index unique_id2(id1),
    while the server thought it's unique_id2(id4).
    But col_names[ifield->col_no] is wrong too, because `table` has non-renamed
    columns, so the correct column name is always dict_table_get_col_name(table, ifield->col_no)
    607d8f9e
innodb-alter.test 16.7 KB