summaryrefslogtreecommitdiff
path: root/include/mysql_com.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-02-20 13:07:32 +0300
committerAlexander Nozdrin <alik@sun.com>2010-02-20 13:07:32 +0300
commit7c10a8981ce3f5eff59e0f3a73e4f0ad176f8c90 (patch)
treec7e57caf2dddf80f1b45617e4a1bac400e4e880a /include/mysql_com.h
parent7ba05466208a5d32d7518152a84754892cf435e9 (diff)
downloadmariadb-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/mysql_com.h')
-rw-r--r--include/mysql_com.h8
1 files changed, 8 insertions, 0 deletions
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: