1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +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:
Xinyi Hong
2021-09-29 21:04:55 +00:00
parent 62c93c9029
commit 579e5c1c04

View File

@@ -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)