summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/sql.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/sql.c b/src/common/sql.c
index c80edbce4..235be3aca 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -91,7 +91,10 @@ struct Sql *Sql_Malloc(void)
self->lengths = NULL;
self->result = NULL;
self->keepalive = INVALID_TIMER;
- self->handle.reconnect = 1;
+ {
+ my_bool reconnect = 1;
+ mysql_options(&self->handle, MYSQL_OPT_RECONNECT, &reconnect);
+ }
return self;
}