mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/DBLayer: Support using mysql 8
(cherry picked from commit c3a9d56b56)
This commit is contained in:
@@ -304,10 +304,7 @@ bool Field::IsNumeric() const
|
||||
|
||||
#ifdef TRINITY_STRICT_DATABASE_TYPE_CHECKS
|
||||
|
||||
#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 "MySQLHacks.h"
|
||||
|
||||
static char const* FieldTypeToString(enum_field_types type)
|
||||
{
|
||||
@@ -343,7 +340,7 @@ static char const* FieldTypeToString(enum_field_types type)
|
||||
}
|
||||
}
|
||||
|
||||
void Field::SetMetadata(MYSQL_FIELD* field, uint32 fieldIndex)
|
||||
void Field::SetMetadata(MySQLField* field, uint32 fieldIndex)
|
||||
{
|
||||
meta.TableName = field->org_table;
|
||||
meta.TableAlias = field->table;
|
||||
|
||||
Reference in New Issue
Block a user