summaryrefslogtreecommitdiff
path: root/sql/mysqld.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-12-18 19:03:51 +0300
committerGitHub <noreply@github.com>2017-12-18 19:03:51 +0300
commitb55a149194e7f73b5ceb35a0a5d5fb575a8ba586 (patch)
tree5586c3cbb6189f5823bb71e983eb381f6769fda8 /sql/mysqld.h
parentd5e37621cf1dd2fe1a1226992be05ca57d595b79 (diff)
downloadmariadb-git-b55a149194e7f73b5ceb35a0a5d5fb575a8ba586.tar.gz
Timestamp-based versioning for InnoDB [closes #209]
* Removed integer_fields check * Reworked Vers_parse_info::check_sys_fields() * Misc renames * versioned as vers_sys_type_t * Removed versioned_by_sql(), versioned_by_engine() versioned() works as before; versioned(VERS_TIMESTAMP) is versioned_by_sql(); versioned(VERS_TRX_ID) is versioned_by_engine(). * create_tmp_table() fix * Foreign constraints for timestamp-based * Range auto-specifier fix * SQL: 1-row partition rotation fix [fixes #260] * Fix 'drop system versioning, algorithm=inplace'
Diffstat (limited to 'sql/mysqld.h')
-rw-r--r--sql/mysqld.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h
index aedf2850186..2463f569c94 100644
--- a/sql/mysqld.h
+++ b/sql/mysqld.h
@@ -181,22 +181,22 @@ extern const char *log_output_str;
extern const char *log_backup_output_str;
/* System Versioning begin */
-enum vers_range_type_t
+enum vers_system_time_t
{
- FOR_SYSTEM_TIME_UNSPECIFIED = 0,
- FOR_SYSTEM_TIME_ALL,
- FOR_SYSTEM_TIME_AS_OF,
- FOR_SYSTEM_TIME_FROM_TO,
- FOR_SYSTEM_TIME_BETWEEN,
- FOR_SYSTEM_TIME_BEFORE
+ SYSTEM_TIME_UNSPECIFIED = 0,
+ SYSTEM_TIME_ALL,
+ SYSTEM_TIME_AS_OF,
+ SYSTEM_TIME_FROM_TO,
+ SYSTEM_TIME_BETWEEN,
+ SYSTEM_TIME_BEFORE
};
-struct st_vers_asof_timestamp
+struct vers_asof_timestamp_t
{
ulong type;
MYSQL_TIME ltime;
- st_vers_asof_timestamp() :
- type(FOR_SYSTEM_TIME_UNSPECIFIED)
+ vers_asof_timestamp_t() :
+ type(SYSTEM_TIME_UNSPECIFIED)
{}
};