]> granicus.if.org Git - php/commitdiff
Of course, 64*4 is 256, not 1024
authorAndrey Hristov <andrey@php.net>
Tue, 27 Apr 2010 11:02:51 +0000 (11:02 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 27 Apr 2010 11:02:51 +0000 (11:02 +0000)
ext/mysqlnd/mysqlnd_enum_n_def.h

index c99f3b01bd329996c8fcdb6e3e07cd94e22e5c7e..48993f747348b0835f713d288c957068c52394ed 100644 (file)
@@ -39,8 +39,8 @@
 #define MYSQLND_SQLSTATE_LENGTH                5
 #define MYSQLND_SQLSTATE_NULL          "00000"
 
-#define MYSQLND_MAX_ALLOWED_USER_LEN   1024  /* 64 char * 4byte . MySQL supports now only 16 char, but let it be forward compatible */
-#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. */
+#define MYSQLND_MAX_ALLOWED_USER_LEN   256             /* 64 char * 4byte . MySQL supports now only 16 char, but let it be forward compatible */
+#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. */
 
 #define MYSQLND_NET_CMD_BUFFER_MIN_SIZE                        4096
 #define MYSQLND_NET_CMD_BUFFER_MIN_SIZE_STR            "4096"