mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
Make Mangos Four compatible with newer MySQL. Based by work by @leprasmurf
* Delimite SQL queries for MySQL 8 compatibility * Fix database name for PlayerDump
This commit is contained in:
parent
96e645a61d
commit
fbdc248ed1
57 changed files with 1017 additions and 972 deletions
|
|
@ -39,10 +39,10 @@ void GMTicketMgr::LoadGMTickets()
|
|||
m_GMTicketMap.clear(); // For reload case
|
||||
|
||||
QueryResult* result = CharacterDatabase.Query(
|
||||
// 0 1 2 3 4
|
||||
"SELECT guid, ticket_text, response_text, UNIX_TIMESTAMP(ticket_lastchange), ticket_id "
|
||||
"FROM character_ticket "
|
||||
"ORDER BY ticket_id ASC");
|
||||
// 0 1 2 3 4
|
||||
"SELECT `guid`, `ticket_text`, `response_text`, UNIX_TIMESTAMP(`ticket_lastchange`), `ticket_id` "
|
||||
"FROM `character_ticket` "
|
||||
"ORDER BY `ticket_id` ASC");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
|
|
@ -95,7 +95,7 @@ void GMTicketMgr::DeleteAll()
|
|||
owner->GetSession()->SendGMTicketGetTicket(0x0A);
|
||||
}
|
||||
}
|
||||
CharacterDatabase.Execute("DELETE FROM character_ticket");
|
||||
CharacterDatabase.Execute("DELETE FROM `character_ticket`");
|
||||
m_GMTicketListByCreatingOrder.clear();
|
||||
m_GMTicketMap.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue