diff options
author | unknown <jimw@mysql.com> | 2005-07-06 16:29:31 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-07-06 16:29:31 -0700 |
commit | 813033338c451748a0e32af386d5b344940d6277 (patch) | |
tree | b10020e9d78356f2a1a05bf9802eb5f162391198 /sql-common | |
parent | 348dfd416396cd6d7b541ddaef0d0ea71667fa67 (diff) | |
download | mariadb-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.c | 3 |
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); } |