From 646825734c6cdfe65b1e422c7444f412b68cb8f5 Mon Sep 17 00:00:00 2001 From: Neon Date: Wed, 27 Nov 2024 01:46:19 +0100 Subject: [PATCH] Removed unnecessary GROUP BY clause This fixes #10 --- game-server/src/com/aionemu/gameserver/dao/AbyssRankDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/src/com/aionemu/gameserver/dao/AbyssRankDAO.java b/game-server/src/com/aionemu/gameserver/dao/AbyssRankDAO.java index 9f4026a21..7878304e5 100644 --- a/game-server/src/com/aionemu/gameserver/dao/AbyssRankDAO.java +++ b/game-server/src/com/aionemu/gameserver/dao/AbyssRankDAO.java @@ -38,7 +38,7 @@ public class AbyssRankDAO { private static final String INCREASE_GP_QUERY_WITH_STATS = "UPDATE abyss_rank SET gp = gp + ?, daily_gp = daily_gp + ?, weekly_gp = weekly_gp + ? WHERE player_id = ?"; private static final String UPDATE_RANK = "UPDATE abyss_rank SET `rank` = ? WHERE player_id = ?"; private static final String SELECT_RANKING_LIST_PLAYERS = "SELECT a.rank_pos, a.old_rank_pos, p.id, p.name, p.race, p.exp, a.rank, a.ap, a.gp, p.title_id, p.player_class, p.gender, l.name FROM abyss_rank a JOIN players p ON a.player_id = p.id LEFT JOIN legion_members lm ON lm.player_id = p.id LEFT JOIN legions l ON l.id = lm.legion_id WHERE a.rank_pos > 0"; - private static final String SELECT_RANKING_LIST_LEGIONS = "SELECT l.rank_pos, l.old_rank_pos, l.id, l.name, p.race, l.level, l.contribution_points FROM legions l, legion_members lm, players p WHERE lm.rank = 'BRIGADE_GENERAL' AND lm.player_id = p.id AND lm.legion_id = l.id AND l.rank_pos > 0 GROUP BY id"; + private static final String SELECT_RANKING_LIST_LEGIONS = "SELECT l.rank_pos, l.old_rank_pos, l.id, l.name, p.race, l.level, l.contribution_points FROM legions l, legion_members lm, players p WHERE lm.rank = 'BRIGADE_GENERAL' AND lm.player_id = p.id AND lm.legion_id = l.id AND l.rank_pos > 0"; private static final String SELECT_RANKING_LIST_PLAYERS_GP = "SELECT a.rank_pos, a.player_id, a.gp FROM abyss_rank a, players p WHERE a.player_id = p.id AND p.race = ? AND a.rank_pos > 0 ORDER by a.rank_pos"; private static final String SELECT_UNRANKED_PLAYERS_AP = "SELECT a.player_id, a.ap FROM abyss_rank a, players p WHERE a.player_id = p.id AND p.race = ? AND a.rank_pos = 0 AND a.rank >= ?"; private static final String SELECT_LEGION_COUNT = "SELECT COUNT(player_id) as players FROM legion_members WHERE legion_id = ?";