Skip to content

Commit 550fd8a

Browse files
committed
Update comment regarding MySQL user max length
The username can be up to 32 chars long as of MySQL 5.7.8
1 parent fea895b commit 550fd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqlnd/mysqlnd_enum_n_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#define MYSQLND_SQLSTATE_LENGTH 5
4141
#define MYSQLND_SQLSTATE_NULL "00000"
4242

43-
#define MYSQLND_MAX_ALLOWED_USER_LEN 252 /* 63 char * 4byte . MySQL supports now only 16 char, but let it be forward compatible */
43+
#define MYSQLND_MAX_ALLOWED_USER_LEN 252 /* 63 char * 4byte . MySQL supports now only 32 char, but let it be forward compatible */
4444
#define MYSQLND_MAX_ALLOWED_DB_LEN 1024 /* 256 char * 4byte. MySQL supports now only 64 char in the tables, but on the FS could be different. Forward compatible. */
4545

4646
#define MYSQLND_NET_CMD_BUFFER_MIN_SIZE 4096

0 commit comments

Comments
 (0)