From b1750da58d169e9ed916eb6a6a95da93caeb0ff8 Mon Sep 17 00:00:00 2001 From: FALL1N1 Date: Wed, 11 Nov 2020 02:15:37 +0200 Subject: [PATCH] SQL seems fine as well, let's gooo --- src/common/Database/DatabaseWorkerPool.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/common/Database/DatabaseWorkerPool.cpp b/src/common/Database/DatabaseWorkerPool.cpp index b687895738..fc2a12c276 100644 --- a/src/common/Database/DatabaseWorkerPool.cpp +++ b/src/common/Database/DatabaseWorkerPool.cpp @@ -18,8 +18,7 @@ DatabaseWorkerPool::DatabaseWorkerPool() : memset(_connectionCount, 0, sizeof(_connectionCount)); _connections.resize(IDX_SIZE); - WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe."); - WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "AzerothCore does not support MySQL versions below 5.6"); + WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe."); } template @@ -36,9 +35,7 @@ bool DatabaseWorkerPool::Open(const std::string& infoString, uint8 async_thre for (uint8 i = 0; i < async_threads; ++i) { T* t = new T(_queue, _connectionInfo); - res &= t->Open(); - if (res) // only check mysql version if connection is valid - WPFatal(mysql_get_server_version(t->GetHandle()) >= MIN_MYSQL_SERVER_VERSION, "AzerothCore does not support MySQL versions below 5.6"); + res &= t->Open(); _connections[IDX_ASYNC][i] = t; ++_connectionCount[IDX_ASYNC];