From 27388e4a75c319356d75581b1259f34f0b0be211 Mon Sep 17 00:00:00 2001 From: Francois G Date: Thu, 20 Apr 2023 18:12:28 +0200 Subject: [PATCH] Bug fix player details with group score and tries (MISSING element in the select part in DB) --- src/be/jeffcheasey88/peeratcode/repository/DatabaseQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/be/jeffcheasey88/peeratcode/repository/DatabaseQuery.java b/src/be/jeffcheasey88/peeratcode/repository/DatabaseQuery.java index 306476f..1297245 100644 --- a/src/be/jeffcheasey88/peeratcode/repository/DatabaseQuery.java +++ b/src/be/jeffcheasey88/peeratcode/repository/DatabaseQuery.java @@ -43,7 +43,7 @@ public enum DatabaseQuery { // COMPLETIONS GET_COMPLETION( "SELECT id_completion, tries, fileName, score FROM completions WHERE fk_puzzle = ? AND fk_player = ?"), - GET_COMPLETION_GROUP("SELECT c\r\n" + GET_COMPLETION_GROUP("SELECT c.tries, c.score\r\n" + "FROM completions c\r\n" + "JOIN containsGroups cG on c.fk_player = cG.fk_player\r\n" + "JOIN containsGroups cGs on cGs.fk_group = cG.fk_group\r\n"