Core/CharDB cleanup: change creature_respawn and gameobject_respawn column names to lowerCamel, rename instance column to instanceId and move all queries to these tables to prepared statements.

Fix import error in character_database.sql.
This commit is contained in:
Azazel
2011-04-13 17:02:06 +06:00
parent 1551b8a011
commit 3993b73925
8 changed files with 67 additions and 38 deletions
+4 -1
View File
@@ -166,7 +166,10 @@ bool OPvPCapturePoint::DelCreature(uint32 type)
//if (Map * map = sMapMgr->FindMap(cr->GetMapId()))
// map->Remove(cr,false);
// delete respawn time for this creature
CharacterDatabase.PExecute("DELETE FROM creature_respawn WHERE guid = '%u'", guid);
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CREATURE_RESPAWN_BY_GUID);
stmt->setUInt32(0, guid);
CharacterDatabase.Execute(stmt);
cr->AddObjectToRemoveList();
sObjectMgr->DeleteCreatureData(guid);
m_CreatureTypes[m_Creatures[type]] = 0;