mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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
@ -1683,6 +1683,9 @@ struct System_versioning_info
|
||||
set_period_for_system_time(NULL, NULL);
|
||||
}
|
||||
|
||||
/** Returns true on failure */
|
||||
bool add_implicit_fields(THD *thd, Alter_info *alter_info);
|
||||
|
||||
/** User has added 'WITH SYSTEM VERSIONING' to table definition */
|
||||
bool declared_system_versioning;
|
||||
|
||||
@ -1777,11 +1780,17 @@ struct Table_scope_and_contents_source_st
|
||||
: ha_default_handlerton(thd);
|
||||
}
|
||||
|
||||
bool versioned()
|
||||
bool versioned() const
|
||||
{
|
||||
return system_versioning_info.versioned;
|
||||
}
|
||||
const System_versioning_info *get_system_versioning_info()
|
||||
const System_versioning_info *get_system_versioning_info() const
|
||||
{
|
||||
if (!versioned())
|
||||
return NULL;
|
||||
return &system_versioning_info;
|
||||
}
|
||||
System_versioning_info *get_system_versioning_info()
|
||||
{
|
||||
if (!versioned())
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user