Core/DataStores: Implemented WorldStateExpression

This commit is contained in:
Traesh
2018-10-23 16:20:45 +02:00
committed by Shauren
parent 11674e2721
commit 548d79bb06
13 changed files with 584 additions and 9 deletions
@@ -1090,6 +1090,9 @@ void HotfixDatabaseConnection::DoPrepareStatements()
// WorldSafeLocs.db2
PrepareStatement(HOTFIX_SEL_WORLD_SAFE_LOCS, "SELECT ID, AreaName, LocX, LocY, LocZ, MapID, Facing FROM world_safe_locs ORDER BY ID DESC", CONNECTION_SYNCH);
PREPARE_LOCALE_STMT(HOTFIX_SEL_WORLD_SAFE_LOCS, "SELECT ID, AreaName_lang FROM world_safe_locs_locale WHERE locale = ?", CONNECTION_SYNCH);
// WorldStateExpression.db2
PrepareStatement(HOTFIX_SEL_WORLD_STATE_EXPRESSION, "SELECT ID, Expression FROM world_state_expression ORDER BY ID DESC", CONNECTION_SYNCH);
}
HotfixDatabaseConnection::HotfixDatabaseConnection(MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo)