diff options
author | linencloth <none@none> | 2010-12-19 00:04:27 +0100 |
---|---|---|
committer | linencloth <none@none> | 2010-12-19 00:04:27 +0100 |
commit | 12e046e45ef5a7fdf95a8943798c561ffee81d04 (patch) | |
tree | 2d3ec7407a1d6badc1e1391de12cbd4088377ce2 | |
parent | 43377b4daf8aac7f603bf293171a7a914dbcc5fa (diff) |
Core/InstanceSaveMgr: Replace some queries with executes as the result isn't needed
(thanks to Machiavelli for the idea and for spotting these forgotten lines)
--HG--
branch : trunk
-rwxr-xr-x | src/server/game/Instances/InstanceSaveMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Instances/InstanceSaveMgr.cpp b/src/server/game/Instances/InstanceSaveMgr.cpp index 48a1b042f3b..733337a2531 100755 --- a/src/server/game/Instances/InstanceSaveMgr.cpp +++ b/src/server/game/Instances/InstanceSaveMgr.cpp @@ -280,10 +280,10 @@ void InstanceSaveManager::CleanupAndPackInstances() CharacterDatabase.DirectExecute("UPDATE gameobject_respawn AS tmp LEFT JOIN instance ON tmp.instance = instance.id SET tmp.instance = instance.newid WHERE tmp.instance > 0"); // Update instance too - CharacterDatabase.Query("UPDATE instance SET id = newid"); + CharacterDatabase.DirectExecute("UPDATE instance SET id = newid"); // Finally drop the no longer needed column - CharacterDatabase.Query("ALTER TABLE instance DROP COLUMN newid"); + CharacterDatabase.DirectExecute("ALTER TABLE instance DROP COLUMN newid"); // Bake some cookies for click sLog.outString(">> Cleaned up and packed instances"); |