diff options
author | gluh@mysql.com/gluh.(none) <> | 2006-08-30 15:56:17 +0500 |
---|---|---|
committer | gluh@mysql.com/gluh.(none) <> | 2006-08-30 15:56:17 +0500 |
commit | af9895d4c2fa7787e7024a0fead11aa890ac0d5f (patch) | |
tree | badf8f73c40042fa5b387f7c6af18f4e9f4f7696 /include | |
parent | 109d58af66528bfed7dbea6d56308d356319e2bb (diff) | |
download | mariadb-git-af9895d4c2fa7787e7024a0fead11aa890ac0d5f.tar.gz |
Bug#20393 User name truncation in mysql client
Bug#21432 Database/Table name limited to 64 bytes, not chars, problems with multi-byte
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql_com.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index 56c7f7d2ab5..28c3f86701f 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -26,6 +26,9 @@ #define USERNAME_LENGTH 16 #define SERVER_VERSION_LENGTH 60 #define SQLSTATE_LENGTH 5 +#define SYSTEM_CHARSET_MBMAXLEN 3 +#define NAME_BYTE_LEN NAME_LEN*SYSTEM_CHARSET_MBMAXLEN +#define USERNAME_BYTE_LENGTH USERNAME_LENGTH*SYSTEM_CHARSET_MBMAXLEN #define LOCAL_HOST "localhost" #define LOCAL_HOST_NAMEDPIPE "." |