mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
SQL: CREATE TABLE LIKE for versioned tables [fixes #146]
This commit is contained in:
@ -5378,6 +5378,13 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
|
||||
thd->work_part_info= src_table->table->part_info->get_clone(thd);
|
||||
#endif
|
||||
|
||||
if (src_table->table->versioned() &&
|
||||
local_create_info.vers_info.fix_create_like(thd, &local_alter_info,
|
||||
&local_create_info))
|
||||
{
|
||||
goto err;
|
||||
}
|
||||
|
||||
/*
|
||||
Adjust description of source table before using it for creation of
|
||||
target table.
|
||||
|
Reference in New Issue
Block a user