1
0
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:
kevg
2017-03-06 15:53:53 +03:00
committed by Aleksey Midenkov
parent 17745222a1
commit 9355e3e966
6 changed files with 57 additions and 4 deletions

View File

@ -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.