summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-11-13 09:12:55 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2022-09-30 12:11:37 +0200
commit98e62e631706f982a6b0e3a63909fa96f98aac5a (patch)
treed445f4a2d951c3b0c03dc31e9761aa90c6b3f00c /sql/table.h
parent1f51d6c0f6527324dfe7c066fc60fc2292ea7e11 (diff)
downloadmariadb-git-98e62e631706f982a6b0e3a63909fa96f98aac5a.tar.gz
Better declaration of the buffer size
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/table.h b/sql/table.h
index 097deca46b2..6036afd3750 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 */
@@ -64,6 +67,8 @@ struct Name_resolution_context;
*/
typedef ulonglong nested_join_map;
+#define VIEW_MD5_LEN 32
+
#define tmp_file_prefix "#sql" /**< Prefix for tmp tables */
#define tmp_file_prefix_length 4
@@ -2460,7 +2465,7 @@ struct TABLE_LIST
/* TABLE_TYPE_UNKNOWN if any type is acceptable */
Table_type required_type;
handlerton *db_type; /* table_type for handler */
- char timestamp_buffer[MAX_DATETIME_WIDTH + 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.