From 03179af14d2bebc95d926e06778eca83fce83d41 Mon Sep 17 00:00:00 2001 From: Zwelf Date: Wed, 11 Nov 2020 20:25:13 +0100 Subject: [PATCH] Fix updating points on SQLite3 backend --- src/engine/server/databases/sqlite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/server/databases/sqlite.cpp b/src/engine/server/databases/sqlite.cpp index c4ee46cd0..a4f2d9df9 100644 --- a/src/engine/server/databases/sqlite.cpp +++ b/src/engine/server/databases/sqlite.cpp @@ -240,7 +240,7 @@ void CSqliteConnection::AddPoints(const char *pPlayer, int Points) str_format(aBuf, sizeof(aBuf), "INSERT INTO %s_points(Name, Points) " "VALUES (?, ?) " - "ON CONFLICT(Name) UPDATE SET Points=Points+?;", + "ON CONFLICT(Name) DO UPDATE SET Points=Points+?;", GetPrefix()); PrepareStatement(aBuf); BindString(1, pPlayer);