summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-12-04 12:36:07 +0300
committerAleksey Midenkov <midenok@gmail.com>2017-12-04 13:19:37 +0300
commit56adced376ef3acde59f8ebf8ce51901f0c5f2fe (patch)
tree34a85aee81a3eb2385b3485117bbe06d2871853c /sql/field.h
parentf489865558c3e5f83fc344b33465771485f103af (diff)
downloadmariadb-git-56adced376ef3acde59f8ebf8ce51901f0c5f2fe.tar.gz
SQL,IB: REPLACE semantics [#365 bug 8]
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h
index fe9c162ef8d..bda7f85e882 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -4642,4 +4642,19 @@ bool check_expression(Virtual_column_info *vcol, LEX_CSTRING *name,
#define f_bit_as_char(x) ((x) & FIELDFLAG_TREAT_BIT_AS_CHAR)
#define f_is_hex_escape(x) ((x) & FIELDFLAG_HEX_ESCAPE)
+inline
+ulonglong TABLE::vers_end_id() const
+{
+ DBUG_ASSERT(versioned_by_engine());
+ return static_cast<ulonglong>(vers_end_field()->val_int());
+}
+
+inline
+ulonglong TABLE::vers_start_id() const
+{
+ DBUG_ASSERT(versioned_by_engine());
+ return static_cast<ulonglong>(vers_start_field()->val_int());
+}
+
+
#endif /* FIELD_INCLUDED */