diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2017-12-21 11:16:42 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2017-12-21 11:16:42 +0300 |
commit | 5c0a19c873382c9fec696f827e6766f61c6682af (patch) | |
tree | c39d60a5557669b779ad72aac6c10abef3ed0eba /sql/handler.h | |
parent | 5c760d952b8ae8a8722b206da3de0ebbad4978e5 (diff) | |
parent | 9ec2479778269fb33194c088216119d4f1dca58d (diff) | |
download | mariadb-git-5c0a19c873382c9fec696f827e6766f61c6682af.tar.gz |
System Versioning 1.0 pre7
Merge branch '10.3' into trunk
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 13b8dc41f65..1a4e83c093d 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -672,6 +672,15 @@ struct xid_t { }; typedef struct xid_t XID; +/* + The size of XID string representation in the form + 'gtrid', 'bqual', formatID + see xid_t::get_sql_string() for details. +*/ +#define SQL_XIDSIZE (XIDDATASIZE * 2 + 8 + MY_INT64_NUM_DECIMAL_DIGITS) +/* The 'buf' has to have space for at least SQL_XIDSIZE bytes. */ +uint get_sql_xid(XID *xid, char *buf); + /* for recover() handlerton call */ #define MIN_XID_LIST_SIZE 128 #define MAX_XID_LIST_SIZE (1024*128) @@ -1929,6 +1938,13 @@ struct HA_CREATE_INFO: public Table_scope_and_contents_source_st, used_fields|= (HA_CREATE_USED_CHARSET | HA_CREATE_USED_DEFAULT_CHARSET); return false; } + ulong table_options_with_row_type() + { + if (row_type == ROW_TYPE_DYNAMIC || row_type == ROW_TYPE_PAGE) + return table_options | HA_OPTION_PACK_RECORD; + else + return table_options; + } }; |