From c87d0f93e10ec737850e7398aa405b323d2c2bc9 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 11 May 2020 17:46:22 +0000 Subject: [PATCH] Missing Delimiter --- src/game/Object/Player.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index fd1529b85..e29067914 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -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; }