mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
don't allow TIMESTAMP(6) versioning and FK with CASCADE or SET NULL
This commit is contained in:
@ -1722,9 +1722,17 @@ struct Schema_specification_st
|
||||
|
||||
class Create_field;
|
||||
|
||||
enum vers_sys_type_t
|
||||
{
|
||||
VERS_UNDEFINED= 0,
|
||||
VERS_TIMESTAMP,
|
||||
VERS_TRX_ID
|
||||
};
|
||||
|
||||
struct Vers_parse_info
|
||||
{
|
||||
Vers_parse_info() :
|
||||
check_unit(VERS_UNDEFINED),
|
||||
versioned_fields(false),
|
||||
unversioned_fields(false)
|
||||
{}
|
||||
@ -1742,6 +1750,7 @@ struct Vers_parse_info
|
||||
|
||||
start_end_t system_time;
|
||||
start_end_t as_row;
|
||||
vers_sys_type_t check_unit;
|
||||
|
||||
void set_system_time(LString start, LString end)
|
||||
{
|
||||
@ -1773,7 +1782,7 @@ protected:
|
||||
bool need_check(const Alter_info *alter_info) const;
|
||||
bool check_with_conditions(const char *table_name) const;
|
||||
bool check_sys_fields(const char *table_name, Alter_info *alter_info,
|
||||
bool native) const;
|
||||
bool native);
|
||||
|
||||
public:
|
||||
static const LString default_start;
|
||||
|
Reference in New Issue
Block a user