mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
added implicitly generated fields in versioned tables support and refactored code a bit
This commit is contained in:
committed by
Aleksey Midenkov
parent
013345d119
commit
d8c8d7b946
@@ -3849,10 +3849,6 @@ mysql_execute_command(THD *thd)
|
||||
copy.
|
||||
*/
|
||||
Alter_info alter_info(lex->alter_info, thd->mem_root);
|
||||
|
||||
if (check_system_versioning(&create_info))
|
||||
goto end_with_restore_list;
|
||||
|
||||
if (thd->is_fatal_error)
|
||||
{
|
||||
/* If out of memory when creating a copy of alter_info. */
|
||||
@@ -3860,6 +3856,13 @@ mysql_execute_command(THD *thd)
|
||||
goto end_with_restore_list;
|
||||
}
|
||||
|
||||
if (System_versioning_info *info= create_info.get_system_versioning_info())
|
||||
if (info->add_implicit_fields(thd, &alter_info))
|
||||
goto end_with_restore_list;
|
||||
|
||||
if (check_system_versioning(&create_info))
|
||||
goto end_with_restore_list;
|
||||
|
||||
/* Check privileges */
|
||||
if ((res= create_table_precheck(thd, select_tables, create_table)))
|
||||
goto end_with_restore_list;
|
||||
|
||||
Reference in New Issue
Block a user