mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Database: Fix build with Maria DB on some distros (#24248)
This commit is contained in:
@@ -54,8 +54,8 @@ DatabaseWorkerPool<T>::DatabaseWorkerPool()
|
||||
{
|
||||
WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe.");
|
||||
WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "TrinityCore does not support MySQL versions below 5.1");
|
||||
WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s). Search on forum for TCE00011.",
|
||||
mysql_get_client_info(), MYSQL_SERVER_VERSION);
|
||||
WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s id %lu) does not match the version id used to compile TrinityCore (id %u). Search on forum for TCE00011.",
|
||||
mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID);
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -28,7 +28,7 @@ void MySQL::Library_End()
|
||||
mysql_library_end();
|
||||
}
|
||||
|
||||
char const* MySQL::GetLibraryVersion()
|
||||
uint32 MySQL::GetLibraryVersion()
|
||||
{
|
||||
return MYSQL_SERVER_VERSION;
|
||||
return MYSQL_VERSION_ID;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace MySQL
|
||||
{
|
||||
TC_DATABASE_API void Library_Init();
|
||||
TC_DATABASE_API void Library_End();
|
||||
TC_DATABASE_API char const* GetLibraryVersion();
|
||||
TC_DATABASE_API uint32 GetLibraryVersion();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -138,7 +138,7 @@ public:
|
||||
handler->PSendSysMessage("%s", GitRevision::GetFullVersion());
|
||||
handler->PSendSysMessage("Using SSL version: %s (library: %s)", OPENSSL_VERSION_TEXT, SSLeay_version(SSLEAY_VERSION));
|
||||
handler->PSendSysMessage("Using Boost version: %i.%i.%i", BOOST_VERSION / 100000, BOOST_VERSION / 100 % 1000, BOOST_VERSION % 100);
|
||||
handler->PSendSysMessage("Using MySQL version: %s", MySQL::GetLibraryVersion());
|
||||
handler->PSendSysMessage("Using MySQL version: %u", MySQL::GetLibraryVersion());
|
||||
handler->PSendSysMessage("Using CMake version: %s", GitRevision::GetCMakeVersion());
|
||||
|
||||
handler->PSendSysMessage("Compiled on: %s", GitRevision::GetHostOSVersion());
|
||||
|
||||
Reference in New Issue
Block a user