mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/DBLayer: Drop support for MySQL versions <5.1
Both server and client libraries must be up to date in order to run TC.
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
#include "QueryHolder.h"
|
||||
#include "AdhocStatement.h"
|
||||
|
||||
#define MIN_MYSQL_SERVER_VERSION 51000u
|
||||
#define MIN_MYSQL_CLIENT_VERSION 51000u
|
||||
|
||||
class PingOperation : public SQLOperation
|
||||
{
|
||||
//! Operation for idle delaythreads
|
||||
@@ -53,6 +56,9 @@ class DatabaseWorkerPool
|
||||
_connections.resize(IDX_SIZE);
|
||||
|
||||
WPFatal (mysql_thread_safe(), "Used MySQL library isn't thread-safe.");
|
||||
WPFatal (mysql_get_server_version() >= MIN_MYSQL_SERVER_VERSION &&
|
||||
mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION,
|
||||
"TrinityCore does not support MySQL versions below 5.1");
|
||||
}
|
||||
|
||||
~DatabaseWorkerPool()
|
||||
|
||||
Reference in New Issue
Block a user