diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2016-08-19 20:03:05 +0000 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-08-25 16:27:57 +0200 |
commit | 56c4cfe0bea0fea8f80692c3df684b204cbfa731 (patch) | |
tree | dc433fb0f163f8d06498b1cc425c6a57298cf060 /client/mysqldump.c | |
parent | 31a8cf54c8a7913338480a0571feaf32143b5f64 (diff) | |
download | mariadb-git-56c4cfe0bea0fea8f80692c3df684b204cbfa731.tar.gz |
MDEV-9293 - Use MariaDB's Connector/C in server
Diffstat (limited to 'client/mysqldump.c')
-rw-r--r-- | client/mysqldump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index 60f244bf591..acb72a12bf3 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -1643,6 +1643,7 @@ static void maybe_exit(int error) static int connect_to_db(char *host, char *user,char *passwd) { char buff[20+FN_REFLEN]; + my_bool reconnect; DBUG_ENTER("connect_to_db"); verbose_msg("-- Connecting to %s...\n", host ? host : "localhost"); @@ -1697,7 +1698,8 @@ static int connect_to_db(char *host, char *user,char *passwd) As we're going to set SQL_MODE, it would be lost on reconnect, so we cannot reconnect. */ - mysql->reconnect= 0; + reconnect= 0; + mysql_options(&mysql_connection, MYSQL_OPT_RECONNECT, &reconnect); my_snprintf(buff, sizeof(buff), "/*!40100 SET @@SQL_MODE='%s' */", compatible_mode_normal_str); if (mysql_query_with_error_report(mysql, 0, buff)) |