summaryrefslogtreecommitdiff
path: root/sql/sql_const.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-11-18 16:04:57 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2021-04-20 16:36:56 +0200
commita3099a3b4a394da360b5c1e7ae6dc985ae2f7f2f (patch)
tree6df02d372d1ad80d3358122a9cff7961aa362775 /sql/sql_const.h
parent8751aa7397b2e698fa0b46ec3e60abb9e2fd7e1b (diff)
downloadmariadb-git-a3099a3b4a394da360b5c1e7ae6dc985ae2f7f2f.tar.gz
MDEV-24312 master_host has 60 character limit, increase to 255 bytesbb-10.6-MDEV-24312
Also increase user name up to 128. The work was started by Rucha Deodhar <rucha.deodhar@mariadb.com>, contains audit plugin fixes by Alexey Botchkov <holyfoot@askmonty.org>.
Diffstat (limited to 'sql/sql_const.h')
-rw-r--r--sql/sql_const.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_const.h b/sql/sql_const.h
index 3f053a1606d..762728aa876 100644
--- a/sql/sql_const.h
+++ b/sql/sql_const.h
@@ -49,7 +49,7 @@
#else
#define MAX_REFLENGTH 4 /* Max length for record ref */
#endif
-#define MAX_HOSTNAME 61 /* len+1 in mysql.user */
+#define MAX_HOSTNAME (HOSTNAME_LENGTH + 1) /* len+1 in mysql.user */
#define MAX_CONNECTION_NAME NAME_LEN
#define MAX_MBWIDTH 3 /* Max multibyte sequence */