summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-07-06 16:29:31 -0700
committerjimw@mysql.com <>2005-07-06 16:29:31 -0700
commitbef1c7778996cc769a2a153a4bbfacba547b0255 (patch)
treeb10020e9d78356f2a1a05bf9802eb5f162391198 /sql-common
parent7d7a59e46f34cac967ee164b559edb19d754912f (diff)
downloadmariadb-git-bef1c7778996cc769a2a153a4bbfacba547b0255.tar.gz
Make it possible to change reconnect setting with
mysql_options(..., MYSQL_OPT_RECONNECT, ...). (Bug #11787)
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);
}