Commit 4bf696ae authored by Drahomír Karchňák's avatar Drahomír Karchňák

Fixed broken SQL statement after MR...

parent eedcb330
......@@ -192,7 +192,7 @@ public class UserRankManager {
RankProgress[] result = gameRankProgressMap.get(user.getId());
if(result == null) {
refreshUserRank(user);
forceRefreshUserRank(user);
result = gameRankProgressMap.get(user.getId());
}
......@@ -206,7 +206,7 @@ public class UserRankManager {
RankProgress[] result = gameRankProgressMap.get(user.getId());
if(result == null) {
refreshUserRank(user);
forceRefreshUserRank(user);
result = gameRankProgressMap.get(user.getId());
}
......
......@@ -165,7 +165,7 @@ public class GameDAO {
public static final String GAME_SELECT_LAST_SCORES_FOR_USER_AND_GAME = "SELECT value FROM game_score INNER JOIN game ON game_score.game_id=game.id AND game.user_id=? AND game.game_number=? WHERE game_score.key=? AND end_time IS NOT NULL ORDER BY game_id DESC LIMIT 1";
public static final String GAME_SELECT_FOR_RANK_MANAGER = "SELECT id, difficulty_number, game_number, version, start_time, end_time FROM game WHERE user_id = ? AND start_time IS NOT NULL AND start_time != 0 end_time IS NOT NULL AND end_time != 0 ORDER BY end_time ASC";
public static final String GAME_SELECT_FOR_RANK_MANAGER = "SELECT id, difficulty_number, game_number, version, start_time, end_time FROM game WHERE user_id = ? AND start_time IS NOT NULL AND start_time != 0 AND end_time IS NOT NULL AND end_time != 0 ORDER BY end_time ASC";
// classic statements
public static final String IMPORT_GAME_INSERT = "INSERT INTO game (user_id, difficulty_number, game_number, language, version, random_seed, start_time, end_time, sync_at) VALUES (%d, %d, %d, %d, %s, %d, %d, %d, %d)";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment