diff options
| author | MitchesD <majklprofik@seznam.cz> | 2015-07-04 13:56:49 +0200 |
|---|---|---|
| committer | MitchesD <majklprofik@seznam.cz> | 2015-07-04 13:56:49 +0200 |
| commit | f22c2c3f303ee76c76f804f94aa0a7c7b2094ce5 (patch) | |
| tree | c9dc76cf199af2dd059be291d9acf4f8c947518e /src/server/shared/Database | |
| parent | faeaebc78332ed97d2bfada022b71ddef953be39 (diff) | |
Core/DataStores: moved GameTables to separate method and load them from DB2
Diffstat (limited to 'src/server/shared/Database')
| -rw-r--r-- | src/server/shared/Database/Implementation/HotfixDatabase.cpp | 4 | ||||
| -rw-r--r-- | src/server/shared/Database/Implementation/HotfixDatabase.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/server/shared/Database/Implementation/HotfixDatabase.cpp b/src/server/shared/Database/Implementation/HotfixDatabase.cpp index a7043b1d5ff..b8e2b2c8fee 100644 --- a/src/server/shared/Database/Implementation/HotfixDatabase.cpp +++ b/src/server/shared/Database/Implementation/HotfixDatabase.cpp @@ -52,6 +52,10 @@ void HotfixDatabaseConnection::DoPrepareStatements() "PhaseUseFlags, PhaseID, PhaseGroupID, Type, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Name FROM gameobjects ORDER BY ID DESC", CONNECTION_SYNCH); PREPARE_LOCALE_STMT(HOTFIX_SEL_GAMEOBJECTS, "SELECT ID, Name_lang FROM gameobjects_locale WHERE locale = ?", CONNECTION_SYNCH); + // GameTables.db2 + PrepareStatement(HOTFIX_SEL_GAME_TABLES, "SELECT ID, Name, NumRows, NumColumns FROM game_tables ORDER BY ID DESC", CONNECTION_SYNCH); + PREPARE_LOCALE_STMT(HOTFIX_SEL_GAME_TABLES, "SELECT ID, Name_lang FROM game_tables_locale WHERE locale = ?", CONNECTION_SYNCH); + // GarrAbility.db2 PrepareStatement(HOTFIX_SEL_GARR_ABILITY, "SELECT ID, Flags, Name, Description, IconFileDataID, OtherFactionGarrAbilityID, " "GarrAbilityCategoryID FROM garr_ability ORDER BY ID DESC", CONNECTION_SYNCH); diff --git a/src/server/shared/Database/Implementation/HotfixDatabase.h b/src/server/shared/Database/Implementation/HotfixDatabase.h index 4adf555dc2f..e92cbb444b5 100644 --- a/src/server/shared/Database/Implementation/HotfixDatabase.h +++ b/src/server/shared/Database/Implementation/HotfixDatabase.h @@ -57,6 +57,9 @@ enum HotfixDatabaseStatements HOTFIX_SEL_GAMEOBJECTS, HOTFIX_SEL_GAMEOBJECTS_LOCALE, + HOTFIX_SEL_GAME_TABLES, + HOTFIX_SEL_GAME_TABLES_LOCALE, + HOTFIX_SEL_GARR_ABILITY, HOTFIX_SEL_GARR_ABILITY_LOCALE, |
