[Commits] 1368a63589d: Better declaration of the buffer size
revision-id: 1368a63589d0b4900f7d7efb57444c4ea34e6c26 (mariadb-10.1.37-8-g1368a63589d) parent(s): 59c82dde09984d10f16417c9c82cd759f81d770c author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2018-11-13 09:12:55 +0100 message: Better declaration of the buffer size --- sql/table.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sql/table.h b/sql/table.h index ca32234579f..a7913844e9d 100644 --- a/sql/table.h +++ b/sql/table.h @@ -32,6 +32,9 @@ #include "filesort_utils.h" #include "parse_file.h" +/* buffer for timestamp (19+1) */ +#define VIEW_TIME_STAMP_BUFFER_SIZE (PARSE_FILE_TIMESTAMPLENGTH + 1) + /* Structs that defines the TABLE */ class Item; /* Needed by ORDER */ @@ -2079,7 +2082,7 @@ struct TABLE_LIST /* FRMTYPE_ERROR if any type is acceptable */ enum frm_type_enum required_type; handlerton *db_type; /* table_type for handler */ - char timestamp_buffer[20]; /* buffer for timestamp (19+1) */ + char timestamp_buffer[VIEW_TIME_STAMP_BUFFER_SIZE]; /* This TABLE_LIST object is just placeholder for prelocking, it will be used for implicit LOCK TABLES only and won't be used in real statement.
participants (1)
-
Oleksandr Byelkin