summaryrefslogtreecommitdiff
path: root/client/mysql.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-10-03 18:00:44 +0300
committerunknown <sanja@askmonty.org>2013-10-03 18:00:44 +0300
commitc776f5ac2614e24e64dd06f488ee29716f056c95 (patch)
tree54a20fcc5ac312f150bbb2b942246931b3ecc495 /client/mysql.cc
parentdd7339676b2a57e71f41075919ffca99bd1be937 (diff)
downloadmariadb-git-c776f5ac2614e24e64dd06f488ee29716f056c95.tar.gz
Client attributes
Diffstat (limited to 'client/mysql.cc')
-rw-r--r--client/mysql.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 36567da5947..0e39818af5e 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1359,6 +1359,9 @@ sig_handler handle_sigint(int sig)
}
kill_mysql= mysql_init(kill_mysql);
+ mysql_options(kill_mysql, MYSQL_OPT_CONNECT_ATTR_RESET, 0);
+ mysql_options4(kill_mysql, MYSQL_OPT_CONNECT_ATTR_ADD,
+ "program_name", "mysql");
if (!mysql_real_connect(kill_mysql,current_host, current_user, opt_password,
"", opt_mysql_port, opt_mysql_unix_port,0))
{
@@ -4606,6 +4609,9 @@ sql_real_connect(char *host,char *database,char *user,char *password,
if (opt_default_auth && *opt_default_auth)
mysql_options(&mysql, MYSQL_DEFAULT_AUTH, opt_default_auth);
+ mysql_options(&mysql, MYSQL_OPT_CONNECT_ATTR_RESET, 0);
+ mysql_options4(&mysql, MYSQL_OPT_CONNECT_ATTR_ADD,
+ "program_name", "mysql");
if (!mysql_real_connect(&mysql, host, user, password,
database, opt_mysql_port, opt_mysql_unix_port,
connect_flag | CLIENT_MULTI_STATEMENTS))