From 82ef7e5e816552ab8aa53c2faa84365449ffb15e Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 27 Sep 2021 17:36:40 +0800 Subject: [PATCH] Fix for MySQL 8 client lib support --- nelns/admin_service/admin_service.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nelns/admin_service/admin_service.cpp b/nelns/admin_service/admin_service.cpp index 9c11347fc..1788ff5ef 100644 --- a/nelns/admin_service/admin_service.cpp +++ b/nelns/admin_service/admin_service.cpp @@ -629,7 +629,11 @@ void sqlInit () nlerror ("mysql_init() failed"); } +#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);