mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/DBLayer: Support using mysql 8
(cherry picked from commit c3a9d56b56)
This commit is contained in:
@@ -16,10 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "MySQLThreading.h"
|
||||
#ifdef _WIN32 // hack for broken mysql.h not including the correct winsock header for SOCKET definition, fixed in 5.7
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
#include <mysql.h>
|
||||
#include "MySQLWorkaround.h"
|
||||
|
||||
void MySQL::Library_Init()
|
||||
{
|
||||
@@ -30,3 +27,8 @@ void MySQL::Library_End()
|
||||
{
|
||||
mysql_library_end();
|
||||
}
|
||||
|
||||
char const* TC_DATABASE_API MySQL::GetLibraryVersion()
|
||||
{
|
||||
return MYSQL_SERVER_VERSION;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user