mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 11:55:43 +00:00
fix(Core/DatabseWorkerPool): implement DatabaseIncompatibleVersion to better support MariaDB (#18201)
* fix(Core): Rework Database Version Check for MariaDB support * incorporate "smarter" version comparison * rename function to be more accurate * Factor magic numbers into defines. Revise comments * clean up triple newline * Doxygenify the docs * remove blankspace --------- Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -24,6 +24,34 @@
|
||||
#include <array>
|
||||
#include <vector>
|
||||
|
||||
/** @file DatabaseWorkerPool.h */
|
||||
|
||||
/**
|
||||
* @def MIN_MYSQL_CLIENT_VERSION
|
||||
* The minimum MariaDB Client Version
|
||||
* MARIADB_VERSION_ID is defined if using libmariadbclient instead of libmysqlclient
|
||||
*/
|
||||
#if MARIADB_VERSION_ID >= 100600
|
||||
#define MIN_MYSQL_CLIENT_VERSION 30203u
|
||||
#else
|
||||
/**
|
||||
* @def MIN_MYSQL_CLIENT_VERSION
|
||||
* The minimum MySQL Client Version
|
||||
*/
|
||||
#define MIN_MYSQL_CLIENT_VERSION 50700u
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def MIN_MYSQL_SERVER_VERSION
|
||||
* The minimum MySQL Server Version
|
||||
*/
|
||||
#define MIN_MYSQL_SERVER_VERSION "5.7.0"
|
||||
/**
|
||||
* @def MIN_MARIADB_SERVER_VERSION
|
||||
* The minimum MariaDB Server Version
|
||||
*/
|
||||
#define MIN_MARIADB_SERVER_VERSION "10.5.0"
|
||||
|
||||
template <typename T>
|
||||
class ProducerConsumerQueue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user