9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-19 14:59:21 +00:00

fix: Exception updating snapshots with Postgres due to LIMIT clause (#440)

Remove LIMIT clause which caused errors
This commit is contained in:
Sóla Lusøt
2024-12-29 14:58:37 +02:00
committed by GitHub
parent 431c9e13c9
commit 7ff10b33a0

View File

@@ -416,8 +416,8 @@ public class PostgresDatabase extends Database {
try (PreparedStatement statement = connection.prepareStatement(formatStatementTables("""
UPDATE %user_data_table%
SET save_cause=?,pinned=?,data=?
WHERE player_uuid=? AND version_uuid=?
LIMIT 1;"""))) {
WHERE player_uuid=? AND version_uuid=?;
"""))) {
statement.setString(1, data.getSaveCause().name());
statement.setBoolean(2, data.isPinned());
statement.setBytes(3, data.asBytes(plugin));