1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-16975 Application-time periods: ALTER TABLE

* implicit period constraint is hidden and cannot be dropped independently
* create...like and create...select support
This commit is contained in:
Nikita Malyavin
2019-02-04 09:37:39 +10:00
committed by Sergei Golubchik
parent b2bd52290a
commit 6294516a56
17 changed files with 533 additions and 53 deletions

View File

@ -4170,8 +4170,7 @@ TABLE *select_create::create_table_from_items(THD *thd, List<Item> *items,
if (!opt_explicit_defaults_for_timestamp)
promote_first_timestamp_column(&alter_info->create_list);
if (create_info->vers_fix_system_fields(thd, alter_info, *create_table,
true))
if (create_info->fix_create_fields(thd, alter_info, *create_table, true))
DBUG_RETURN(NULL);
while ((item=it++))
@ -4210,7 +4209,7 @@ TABLE *select_create::create_table_from_items(THD *thd, List<Item> *items,
alter_info->create_list.push_back(cr_field, thd->mem_root);
}
if (create_info->vers_check_system_fields(thd, alter_info, *create_table))
if (create_info->check_fields(thd, alter_info, *create_table))
DBUG_RETURN(NULL);
DEBUG_SYNC(thd,"create_table_select_before_create");