• Jan Lindström's avatar
    MDEV-8960: Can't refer the same column twice in one ALTER TABLE · ce6c0e58
    Jan Lindström authored
    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.
    ce6c0e58
alter_table.result 72.7 KB