diff options
author | unknown <sanja@askmonty.org> | 2013-10-03 18:00:44 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2013-10-03 18:00:44 +0300 |
commit | c776f5ac2614e24e64dd06f488ee29716f056c95 (patch) | |
tree | 54a20fcc5ac312f150bbb2b942246931b3ecc495 /client/mysqlcheck.c | |
parent | dd7339676b2a57e71f41075919ffca99bd1be937 (diff) | |
download | mariadb-git-c776f5ac2614e24e64dd06f488ee29716f056c95.tar.gz |
Client attributes
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r-- | client/mysqlcheck.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 3559ad2a361..74c33c75a27 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -915,6 +915,9 @@ static int dbConnect(char *host, char *user, char *passwd) mysql_options(&mysql_connection, MYSQL_DEFAULT_AUTH, opt_default_auth); mysql_options(&mysql_connection, MYSQL_SET_CHARSET_NAME, default_charset); + mysql_options(&mysql_connection, MYSQL_OPT_CONNECT_ATTR_RESET, 0); + mysql_options4(&mysql_connection, MYSQL_OPT_CONNECT_ATTR_ADD, + "program_name", "mysqlcheck"); if (!(sock = mysql_real_connect(&mysql_connection, host, user, passwd, NULL, opt_mysql_port, opt_mysql_unix_port, 0))) { |