Core/DBLayer:
- Implement deriviate classes of MySQLConnection for every database type (world, realm, characters) - Make DatabaseWorkerPool templatized and use the above mentioned classes as parameter - Implementation of the new types in code (This is in preparation of prepared statement interface) --HG-- branch : trunk
This commit is contained in:
@@ -7680,7 +7680,7 @@ void ObjectMgr::LoadGameObjectForQuests()
|
||||
sLog.outString(">> Loaded %u GameObjects for quests", count);
|
||||
}
|
||||
|
||||
bool ObjectMgr::LoadTrinityStrings(DatabaseType& db, char const* table, int32 min_value, int32 max_value)
|
||||
bool ObjectMgr::LoadTrinityStrings(char const* table, int32 min_value, int32 max_value)
|
||||
{
|
||||
int32 start_value = min_value;
|
||||
int32 end_value = max_value;
|
||||
@@ -7716,7 +7716,7 @@ bool ObjectMgr::LoadTrinityStrings(DatabaseType& db, char const* table, int32 mi
|
||||
++itr;
|
||||
}
|
||||
|
||||
QueryResult_AutoPtr result = db.PQuery("SELECT entry,content_default,content_loc1,content_loc2,content_loc3,content_loc4,content_loc5,content_loc6,content_loc7,content_loc8 FROM %s",table);
|
||||
QueryResult_AutoPtr result = WorldDatabase.PQuery("SELECT entry,content_default,content_loc1,content_loc2,content_loc3,content_loc4,content_loc5,content_loc6,content_loc7,content_loc8 FROM %s",table);
|
||||
|
||||
if (!result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user