mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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:
parent
5cfc62f9c6
commit
303eec5774
8 changed files with 3186 additions and 29 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue