diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-02-20 13:07:32 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-02-20 13:07:32 +0300 |
commit | 7c10a8981ce3f5eff59e0f3a73e4f0ad176f8c90 (patch) | |
tree | c7e57caf2dddf80f1b45617e4a1bac400e4e880a /include | |
parent | 7ba05466208a5d32d7518152a84754892cf435e9 (diff) | |
download | mariadb-git-7c10a8981ce3f5eff59e0f3a73e4f0ad176f8c90.tar.gz |
Patch for WL#3736: Extended Table, Column and Index Comments.
The task is to
(a) add a comment on indexes and
(b) increase the maximum length of column, table and the new index comments.
The patch committed on behalf of Yoshinori Matsunobu (Yoshinori.Matsunobu@Sun.COM).
Diffstat (limited to 'include')
-rw-r--r-- | include/my_base.h | 1 | ||||
-rw-r--r-- | include/mysql_com.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/my_base.h b/include/my_base.h index b9d0bb48480..7766d4165a2 100644 --- a/include/my_base.h +++ b/include/my_base.h @@ -273,6 +273,7 @@ enum ha_base_keytype { #define HA_SPACE_PACK_USED 4 /* Test for if SPACE_PACK used */ #define HA_VAR_LENGTH_KEY 8 #define HA_NULL_PART_KEY 64 +#define HA_USES_COMMENT 4096 #define HA_USES_PARSER 16384 /* Fulltext index uses [pre]parser */ #define HA_USES_BLOCK_SIZE ((uint) 32768) #define HA_SORT_ALLOWS_SAME 512 /* Intern bit when sorting records */ diff --git a/include/mysql_com.h b/include/mysql_com.h index 3f1ac948423..e4e34141d43 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -33,6 +33,14 @@ #define SQLSTATE_LENGTH 5 /* + Maximum length of comments +*/ +#define TABLE_COMMENT_INLINE_MAXLEN 180 /* pre 6.0: 60 characters */ +#define TABLE_COMMENT_MAXLEN 2048 +#define COLUMN_COMMENT_MAXLEN 1024 +#define INDEX_COMMENT_MAXLEN 1024 + +/* USER_HOST_BUFF_SIZE -- length of string buffer, that is enough to contain username and hostname parts of the user identifier with trailing zero in MySQL standard format: |