mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
Missing Delimiter
This commit is contained in:
parent
26eb468ed4
commit
c87d0f93e1
1 changed files with 6 additions and 6 deletions
|
|
@ -4639,7 +4639,7 @@ void Player::DeleteFromDB(ObjectGuid playerguid, uint32 accountId, bool updateRe
|
|||
|
||||
// we can return mail now
|
||||
// so firstly delete the old one
|
||||
CharacterDatabase.PExecute("DELETE FROM `mail` WHERE id = '%u'", mail_id);
|
||||
CharacterDatabase.PExecute("DELETE FROM `mail` WHERE `id` = '%u'", mail_id);
|
||||
|
||||
// mail not from player
|
||||
if (mailType != MAIL_NORMAL)
|
||||
|
|
@ -4768,7 +4768,7 @@ void Player::DeleteFromDB(ObjectGuid playerguid, uint32 accountId, bool updateRe
|
|||
CharacterDatabase.PExecute("DELETE FROM `character_talent` WHERE `guid` = '%u'", lowguid);
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_ticket` WHERE `guid` = '%u'", lowguid);
|
||||
CharacterDatabase.PExecute("DELETE FROM `item_instance` WHERE `owner_guid` = '%u'", lowguid);
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_social` WHERE `guid` = '%u' OR friend='%u'", lowguid, lowguid);
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_social` WHERE `guid` = '%u' OR `friend`='%u'", lowguid, lowguid);
|
||||
CharacterDatabase.PExecute("DELETE FROM `mail` WHERE `receiver` = '%u'", lowguid);
|
||||
CharacterDatabase.PExecute("DELETE FROM `mail_items` WHERE `receiver` = '%u'", lowguid);
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_pet` WHERE `owner` = '%u'", lowguid);
|
||||
|
|
@ -17387,7 +17387,7 @@ void Player::_LoadGlyphs(QueryResult* result)
|
|||
if (!gp)
|
||||
{
|
||||
sLog.outError("Player %s has not existing glyph entry %u on index %u, spec %u", m_name.c_str(), glyph, slot, spec);
|
||||
CharacterDatabase.PExecute("DELETE FROM character_glyphs WHERE glyph = %u", glyph);
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_glyphs` WHERE `glyph` = %u", glyph);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -17395,14 +17395,14 @@ void Player::_LoadGlyphs(QueryResult* result)
|
|||
if (!gs)
|
||||
{
|
||||
sLog.outError("Player %s has not existing glyph slot entry %u on index %u, spec %u", m_name.c_str(), GetGlyphSlot(slot), slot, spec);
|
||||
CharacterDatabase.PExecute("DELETE FROM character_glyphs WHERE slot = %u AND spec = %u AND guid = %u", slot, spec, GetGUIDLow());
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_glyphs` WHERE `slot` = %u AND `spec` = %u AND `guid` = %u", slot, spec, GetGUIDLow());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (gp->TypeFlags != gs->TypeFlags)
|
||||
{
|
||||
sLog.outError("Player %s has glyph with typeflags %u in slot with typeflags %u, removing.", m_name.c_str(), gp->TypeFlags, gs->TypeFlags);
|
||||
CharacterDatabase.PExecute("DELETE FROM character_glyphs WHERE slot = %u AND spec = %u AND guid = %u", slot, spec, GetGUIDLow());
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_glyphs` WHERE `slot` = %u AND `spec` = %u AND `guid` = %u", slot, spec, GetGUIDLow());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -25689,7 +25689,7 @@ void Player::_LoadCurrencies(QueryResult* result)
|
|||
if (!entry)
|
||||
{
|
||||
sLog.outError("Player::_LoadCurrencies: %s has not existing currency id %u, removing.", GetGuidStr().c_str(), currency_id);
|
||||
CharacterDatabase.PExecute("DELETE FROM character_currencies WHERE id = '%u'", currency_id);
|
||||
CharacterDatabase.PExecute("DELETE FROM `character_currencies` WHERE `id` = '%u'", currency_id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue