refactor(Core/Query): escape some MySQL 8.0 keywords (#3027)

This commit is contained in:
Kitzunu
2020-05-17 07:33:47 +02:00
committed by GitHub
parent dca02598ba
commit fecba9f287
8 changed files with 30 additions and 28 deletions

View File

@@ -80,8 +80,8 @@ void CalendarMgr::LoadFromDB()
sLog->outString(">> Loaded %u calendar events", count);
count = 0;
// 0 1 2 3 4 5 6 7
if (QueryResult result = CharacterDatabase.Query("SELECT id, event, invitee, sender, status, statustime, rank, text FROM calendar_invites"))
// 0 1 2 3 4 5 6 7
if (QueryResult result = CharacterDatabase.Query("SELECT id, event, invitee, sender, status, statustime, `rank`, text FROM calendar_invites"))
do
{
Field* fields = result->Fetch();