Changeset 173 for trunk/src/game/InstanceSaveMgr.cpp
- Timestamp:
- 11/19/08 13:43:02 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/InstanceSaveMgr.cpp
r102 r173 272 272 // first, obtain total instance set 273 273 std::set< uint32 > InstanceSet; 274 QueryResult *result = CharacterDatabase. PQuery("SELECT id FROM instance");274 QueryResult *result = CharacterDatabase.Query("SELECT id FROM instance"); 275 275 if( result ) 276 276 { … … 285 285 286 286 // creature_respawn 287 result = WorldDatabase. PQuery("SELECT DISTINCT(instance) FROM creature_respawn WHERE instance <> 0");287 result = WorldDatabase.Query("SELECT DISTINCT(instance) FROM creature_respawn WHERE instance <> 0"); 288 288 if( result ) 289 289 { … … 299 299 300 300 // gameobject_respawn 301 result = WorldDatabase. PQuery("SELECT DISTINCT(instance) FROM gameobject_respawn WHERE instance <> 0");301 result = WorldDatabase.Query("SELECT DISTINCT(instance) FROM gameobject_respawn WHERE instance <> 0"); 302 302 if( result ) 303 303 { … … 328 328 // any associations to ids not in this table are assumed to be 329 329 // cleaned already in CleanupInstances 330 QueryResult *result = CharacterDatabase. PQuery("SELECT id FROM instance");330 QueryResult *result = CharacterDatabase.Query("SELECT id FROM instance"); 331 331 if( result ) 332 332 { … … 378 378 typedef std::map<uint32, std::pair<uint32, uint64> > ResetTimeMapType; 379 379 ResetTimeMapType InstResetTime; 380 QueryResult *result = CharacterDatabase. PQuery("SELECT id, map, resettime FROM instance WHERE resettime > 0");380 QueryResult *result = CharacterDatabase.Query("SELECT id, map, resettime FROM instance WHERE resettime > 0"); 381 381 if( result ) 382 382 { … … 394 394 395 395 // update reset time for normal instances with the max creature respawn time + X hours 396 result = WorldDatabase. PQuery("SELECT MAX(respawntime), instance FROM creature_respawn WHERE instance > 0 GROUP BY instance");396 result = WorldDatabase.Query("SELECT MAX(respawntime), instance FROM creature_respawn WHERE instance > 0 GROUP BY instance"); 397 397 if( result ) 398 398 {