[vhffs-dev] [1656] MySQL 5.1 now uses utf8 for its internal tables... |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1656
Author: gradator
Date: 2011-04-16 23:57:44 +0200 (Sat, 16 Apr 2011)
Log Message:
-----------
MySQL 5.1 now uses utf8 for its internal tables... the increase of the user field to 128 bytes hits MySQL bug #4541 (opened since 2004), as we only require the user field to be 32 bytes long so we just need to be less greedy
Modified Paths:
--------------
trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch
Modified: trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch
===================================================================
--- trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch 2011-04-16 20:25:14 UTC (rev 1655)
+++ trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch 2011-04-16 21:57:44 UTC (rev 1656)
@@ -7,17 +7,13 @@
@DPATCH@
diff -Nru mysql-5.1-5.1.49.a/include/mysql_com.h mysql-5.1-5.1.49.b/include/mysql_com.h
--- mysql-5.1-5.1.49.a/include/mysql_com.h 2010-07-09 12:34:59.000000000 +0000
-+++ mysql-5.1-5.1.49.b/include/mysql_com.h 2011-04-16 19:29:11.000000000 +0000
-@@ -20,10 +20,10 @@
- #ifndef _mysql_com_h
- #define _mysql_com_h
-
--#define HOSTNAME_LENGTH 60
-+#define HOSTNAME_LENGTH 64
++++ mysql-5.1-5.1.49.b/include/mysql_com.h 2011-04-16 21:45:12.000000000 +0000
+@@ -23,7 +23,7 @@
+ #define HOSTNAME_LENGTH 60
#define SYSTEM_CHARSET_MBMAXLEN 3
#define NAME_CHAR_LEN 64 /* Field/table name length */
-#define USERNAME_CHAR_LENGTH 16
-+#define USERNAME_CHAR_LENGTH 128
++#define USERNAME_CHAR_LENGTH 32
#define NAME_LEN (NAME_CHAR_LEN*SYSTEM_CHARSET_MBMAXLEN)
#define USERNAME_LENGTH (USERNAME_CHAR_LENGTH*SYSTEM_CHARSET_MBMAXLEN)