summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/field.h b/sql/field.h
index 5c2ba4c5c84..a51f279e59b 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -1600,7 +1600,7 @@ public:
bool vers_sys_field() const
{
- return flags & (VERS_SYS_START_FLAG | VERS_SYS_END_FLAG);
+ return flags & (VERS_ROW_START | VERS_ROW_END);
}
bool vers_update_unversioned() const
@@ -4805,7 +4805,7 @@ public:
}
bool vers_sys_field() const
{
- return flags & (VERS_SYS_START_FLAG | VERS_SYS_END_FLAG);
+ return flags & (VERS_ROW_START | VERS_ROW_END);
}
void create_length_to_internal_length_bit();
void create_length_to_internal_length_newdecimal();
@@ -5175,6 +5175,15 @@ public:
}
/* Used to make a clone of this object for ALTER/CREATE TABLE */
Create_field *clone(MEM_ROOT *mem_root) const;
+
+ bool is_some_bigint() const
+ {
+ return type_handler() == &type_handler_longlong ||
+ type_handler() == &type_handler_vers_trx_id;
+ }
+
+ bool vers_check_timestamp(const Lex_table_name &table_name) const;
+ bool vers_check_bigint(const Lex_table_name &table_name) const;
};