diff options
| author | Traesh <traesh@farahlon.com> | 2018-10-23 16:20:45 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2019-08-24 17:13:17 +0200 |
| commit | 548d79bb06cfba3517347070dfe606748dda55ab (patch) | |
| tree | 04d48461378ed52a7ac3075b8119e18ab985925b /src/server/database/Database/Implementation | |
| parent | 11674e2721bf402b6f3b03e9d7dba9a57bbf4c4c (diff) | |
Core/DataStores: Implemented WorldStateExpression
Diffstat (limited to 'src/server/database/Database/Implementation')
| -rw-r--r-- | src/server/database/Database/Implementation/HotfixDatabase.cpp | 3 | ||||
| -rw-r--r-- | src/server/database/Database/Implementation/HotfixDatabase.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp index e93d72bfb08..5dcc28fd544 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.cpp +++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp @@ -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) diff --git a/src/server/database/Database/Implementation/HotfixDatabase.h b/src/server/database/Database/Implementation/HotfixDatabase.h index e31704bebe7..18aa7c60cf7 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.h +++ b/src/server/database/Database/Implementation/HotfixDatabase.h @@ -572,6 +572,8 @@ enum HotfixDatabaseStatements : uint32 HOTFIX_SEL_WORLD_SAFE_LOCS, HOTFIX_SEL_WORLD_SAFE_LOCS_LOCALE, + HOTFIX_SEL_WORLD_STATE_EXPRESSION, + MAX_HOTFIXDATABASE_STATEMENTS }; |
