You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Increase HOSTNAME_LENGTH limit to 255 bytes
The HOSTNAME_LENGTH was increased to 255 bytes in MariaDB 10.6 in commit https://github.com/MariaDB/server/commit/a3099a3b. To make it consistent, update HOSTNAME_LENGTH in mariadb-connector-c to 255 bytes as well. All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
#define NAME_CHAR_LEN 64
|
||||
#define NAME_LEN 256 /* Field/table name length */
|
||||
#define HOSTNAME_LENGTH 60
|
||||
#define HOSTNAME_LENGTH 255
|
||||
#define SYSTEM_MB_MAX_CHAR_LENGTH 4
|
||||
#define USERNAME_CHAR_LENGTH 128
|
||||
#define USERNAME_LENGTH (USERNAME_CHAR_LENGTH * SYSTEM_MB_MAX_CHAR_LENGTH)
|
||||
|
Reference in New Issue
Block a user