mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +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
|
|
@ -305,7 +305,7 @@ void Warden::LogPositiveToDB(WardenCheck* check)
|
|||
|
||||
static SqlStatementID insWardenPositive;
|
||||
|
||||
SqlStatement stmt = LoginDatabase.CreateStatement(insWardenPositive, "INSERT INTO warden_log (`check`, `action`, `account`, `guid`, `map`, `position_x`, `position_y`, `position_z`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
|
||||
SqlStatement stmt = LoginDatabase.CreateStatement(insWardenPositive, "INSERT INTO `warden_log` (`check`, `action`, `account`, `guid`, `map`, `position_x`, `position_y`, `position_z`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
|
||||
|
||||
stmt.addUInt16(check->CheckId);
|
||||
stmt.addInt8(check->Action);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue