Explorar el Código

Fixed compatibility with some newer MySQL client library derivatives

secretdataz hace 7 años
padre
commit
dfe279fb0f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/common/sql.c

+ 2 - 1
src/common/sql.c

@@ -78,7 +78,8 @@ 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;
 }