summaryrefslogtreecommitdiff
path: root/sql-common/client.c
diff options
context:
space:
mode:
authortwocode <08300720306@fudan.edu.cn>2018-05-11 10:11:48 +0800
committerVladislav Vaintroub <wlad@mariadb.com>2018-05-11 16:24:55 +0200
commit8ad12b6664dc89b7b29992c6366abdf9c310db17 (patch)
tree8d82e3504829bb281924886c7b93fb5871447457 /sql-common/client.c
parentee8dfc688e863b68734f3f32c2a0846bb9c12b44 (diff)
downloadmariadb-git-8ad12b6664dc89b7b29992c6366abdf9c310db17.tar.gz
User _server_host per discussion.
Diffstat (limited to 'sql-common/client.c')
-rw-r--r--sql-common/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index f3858063fb7..6a44a2db0aa 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -3057,7 +3057,7 @@ set_connect_attributes(MYSQL *mysql, char *buff, size_t buf_len)
rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_client_name");
rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_os");
rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_platform");
- rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_host_name");
+ rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_server_host");
rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_pid");
rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_thread");
rc+= mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_DELETE, "_client_version");
@@ -3074,7 +3074,7 @@ set_connect_attributes(MYSQL *mysql, char *buff, size_t buf_len)
rc+= mysql_options4(mysql, MYSQL_OPT_CONNECT_ATTR_ADD,
"_platform", MACHINE_TYPE);
rc+= mysql_options4(mysql, MYSQL_OPT_CONNECT_ATTR_ADD,
- "_host_name", mysql->host);
+ "_server_host", mysql->host);
#ifdef __WIN__
snprintf(buff, buf_len, "%lu", (ulong) GetCurrentProcessId());
#else