From bb5064f4f8e63364ddc8cb7523ebc3a7def905ed Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 29 Jun 2017 00:08:09 +0200 Subject: Fix compatibility with MariaDB 10.2 This removes a direct access to a member of the `MYSQL` object and replaces it with the proper accessor for forward/backward compatibility. Signed-off-by: Haru --- src/common/sql.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-60-g2f50