summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-23 13:42:34 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-24 01:28:50 +0100
commit485325e7e3e9b8de6ffd9da872fc2cb5d3a8654b (patch)
tree7179565c627fe67386484dfe3df5e524238bb7ac /sql/handler.h
parent794f71cbc412d17a09eed8f003119cef03880462 (diff)
downloadmariadb-git-485325e7e3e9b8de6ffd9da872fc2cb5d3a8654b.tar.gz
don't allow TIMESTAMP(6) versioning and FK with CASCADE or SET NULL
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index ff7d3ffd3e2..29a837b5ea8 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -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;