Skip to content

Commit

Permalink
BG: Fix prepared statement having too many placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Aug 12, 2024
1 parent dd034ee commit 480bbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/BattleGround/BattleGround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ void BattleGround::EndBattleGround(Team winner)
{
static SqlStatementID insPvPstatsPlayer;
BattleGroundScoreMap::iterator score = m_playerScores.find(m_Player.first);
SqlStatement stmt = CharacterDatabase.CreateStatement(insPvPstatsPlayer, "INSERT INTO pvpstats_players (battleground_id, character_guid, score_killing_blows, score_deaths, score_honorable_kills, score_bonus_honor, score_damage_done, attr_1, attr_2, attr_3, attr_4, attr_5) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
SqlStatement stmt = CharacterDatabase.CreateStatement(insPvPstatsPlayer, "INSERT INTO pvpstats_players (battleground_id, character_guid, score_killing_blows, score_deaths, score_honorable_kills, score_bonus_honor, score_damage_done, attr_1, attr_2, attr_3, attr_4, attr_5) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");

stmt.addUInt32(battleground_id);
stmt.addUInt32(plr->GetGUIDLow());
Expand Down

0 comments on commit 480bbd8

Please sign in to comment.