From 248c1096276fe3530e1875391fe3d2007ab37c72 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 20 Jan 2018 13:59:15 +0000 Subject: [PATCH] Fix winstreak sql --- .../src/mineplex/core/game/winstreaks/WinStreakRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/game/winstreaks/WinStreakRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/game/winstreaks/WinStreakRepository.java index 386fb4835..4905a513d 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/game/winstreaks/WinStreakRepository.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/game/winstreaks/WinStreakRepository.java @@ -7,7 +7,7 @@ import mineplex.serverdata.database.column.ColumnInt; class WinStreakRepository extends RepositoryBase { - private static final String UPDATE_OR_INSERT = "INSERT INTO accountWinStreak VALUES (?,?,?) ON DUPLICATE KEY value=value+1"; + private static final String UPDATE_OR_INSERT = "INSERT INTO accountWinStreak VALUES (?,?,?) ON DUPLICATE KEY UPDATE value=value+1"; private static final String DELETE = "DELETE FROM accountWinStreak WHERE accountId=? AND gameId=?"; WinStreakRepository()