Using uint32_t as reconnect value

This commit is contained in:
WolverinDEV 2021-01-29 09:58:29 +01:00
parent 0cd49a6a2b
commit c1085c84cf

View File

@ -213,7 +213,7 @@ result MySQLManager::connect(const std::string &url) {
return {-1, "failed to allocate connection " + to_string(index)}; return {-1, "failed to allocate connection " + to_string(index)};
{ {
bool reconnect{true}; uint32_t reconnect{true};
mysql_options(connection->handle, MYSQL_OPT_RECONNECT, &reconnect); mysql_options(connection->handle, MYSQL_OPT_RECONNECT, &reconnect);
} }
mysql_options(connection->handle, MYSQL_SET_CHARSET_NAME, "utf8"); mysql_options(connection->handle, MYSQL_SET_CHARSET_NAME, "utf8");