From 8e337c65929179852227224b68aeb31ca5b11a69 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 11 Sep 2025 15:58:31 +0100 Subject: [PATCH] Fix printing the MySQL version when building against MariaDB. --- modules/extra/mysql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/extra/mysql.cpp b/modules/extra/mysql.cpp index 1bc6716b9..a7e2699f9 100644 --- a/modules/extra/mysql.cpp +++ b/modules/extra/mysql.cpp @@ -245,7 +245,7 @@ public: DThread = new DispatcherThread(); DThread->Start(); - Log(this) << "Module was compiled against MySQL version " << (MYSQL_VERSION_ID / 10000) << "." << (MYSQL_VERSION_ID / 100 % 100) << "." << (MYSQL_VERSION_ID % 100) << " and is running against version " << mysql_get_client_info(); + Log(this) << "Module was compiled against MySQL version " << MYSQL_SERVER_VERSION << " and is running against version " << mysql_get_client_info(); } ~ModuleSQL()