From 9466258fa84d7d98df384a095c12b02ca3139ebb Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 27 Sep 2021 19:25:23 +0800 Subject: [PATCH] Fix for MySQL 8 client lib support --- nelns/login_service/mysql_helper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nelns/login_service/mysql_helper.cpp b/nelns/login_service/mysql_helper.cpp index 2979ca6b2..f91d18a62 100644 --- a/nelns/login_service/mysql_helper.cpp +++ b/nelns/login_service/mysql_helper.cpp @@ -131,7 +131,11 @@ static void cbDatabaseVar(CConfigFile::CVar &var) return; } +#if LIBMYSQL_VERSION_ID < 80000 my_bool opt = true; +#else + bool opt = true; +#endif if (mysql_options (db, MYSQL_OPT_RECONNECT, &opt)) { mysql_close(db);