Core/Misc: Change all unix time columns in character database to bigint (signed)
Port From (https://github.com/TrinityCore/TrinityCore/commit/d29dd1eeb5c52dc76bd741fe1ee0e875c416b8e7)
This commit is contained in:
@@ -514,7 +514,7 @@ namespace Game
|
||||
continue;
|
||||
}
|
||||
|
||||
_accountData[type].Time = result.Read<uint>(1);
|
||||
_accountData[type].Time = result.Read<long>(1);
|
||||
var bytes = result.Read<byte[]>(2);
|
||||
var line = Encoding.Default.GetString(bytes);
|
||||
_accountData[type].Data = line;
|
||||
@@ -522,7 +522,7 @@ namespace Game
|
||||
while (result.NextRow());
|
||||
}
|
||||
|
||||
void SetAccountData(AccountDataTypes type, uint time, string data)
|
||||
void SetAccountData(AccountDataTypes type, long time, string data)
|
||||
{
|
||||
if (Convert.ToBoolean((1 << (int)type) & (int)AccountDataTypes.GlobalCacheMask))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user