From 579e5c1c049936de3f1a5c10f369464ad0c45b8c Mon Sep 17 00:00:00 2001 From: Xinyi Hong Date: Wed, 29 Sep 2021 21:04:55 +0000 Subject: [PATCH] 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. --- include/mariadb_com.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mariadb_com.h b/include/mariadb_com.h index 70fb28aa..a7a39ce9 100644 --- a/include/mariadb_com.h +++ b/include/mariadb_com.h @@ -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)