MDEV-6880 Can't define CURRENT_TIMESTAMP as default value for added column

ALTER TABLE: don't fill default values per row, do it once.
And do it in two places - for copy_data_between_tables() and for online ALTER.

Also, run function_defaults test both for MyISAM and for InnoDB.
This commit is contained in:
Sergei Golubchik 2014-11-18 22:25:33 +01:00
commit 303eec5774
8 changed files with 3186 additions and 29 deletions

View file

@ -2460,7 +2460,7 @@ innobase_build_col_map(
innobase_build_col_map_add(
heap, dtuple_get_nth_field(add_cols, i),
altered_table->s->field[sql_idx],
altered_table->field[sql_idx],
dict_table_is_comp(new_table));
found_col:
i++;