Преглед изворни кода

Fixed compatibility with some newer MySQL client library derivatives

secretdataz пре 7 година
родитељ
комит
dfe279fb0f
1 измењених фајлова са 2 додато и 1 уклоњено
  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;
 }