summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-07-06 16:29:31 -0700
committerunknown <jimw@mysql.com>2005-07-06 16:29:31 -0700
commit813033338c451748a0e32af386d5b344940d6277 (patch)
treeb10020e9d78356f2a1a05bf9802eb5f162391198 /sql-common
parent348dfd416396cd6d7b541ddaef0d0ea71667fa67 (diff)
downloadmariadb-git-813033338c451748a0e32af386d5b344940d6277.tar.gz
Make it possible to change reconnect setting with
mysql_options(..., MYSQL_OPT_RECONNECT, ...). (Bug #11787) client/mysqltest.c: Use mysql_options(..., MYSQL_OPT_RECONNECT, ...) to change reconnect include/mysql.h: Add MYSQL_OPT_RECONNECT option sql-common/client.c: Allow changing reconnect using MYSQL_OPT_RECONNECT.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index c736acae857..927da747392 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -2750,6 +2750,9 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const char *arg)
case MYSQL_REPORT_DATA_TRUNCATION:
mysql->options.report_data_truncation= test(*(my_bool *) arg);
break;
+ case MYSQL_OPT_RECONNECT:
+ mysql->reconnect= *(my_bool *) arg;
+ break;
default:
DBUG_RETURN(1);
}