• Sergei Golubchik's avatar
    MDEV-13912 Can't refer the same column twice in one ALTER TABLE · 42171639
    Sergei Golubchik authored
    backport ce6c0e58
    
    MDEV-8960: Can't refer the same column twice in one ALTER TABLE
    
    Problem was that if column was created in alter table when
    it was refered again it was not tried to find from list
    of current columns.
    
    mysql_prepare_alter_table:
      There is two cases
        (1) If alter table adds a new column and then later alter
            changes the field definition, there was no check from
    	list of new columns, instead an incorrect error was given.
        (2) If alter table adds a new column and then later alter
            changes the default, there was no check from list of
    	new columns, instead an incorrect error was given.
    42171639
alter_table.test 33.4 KB