Update replay stuff #188
@ -158,10 +158,10 @@ public class SQLProvider implements Provider {
|
||||
}, fightID);
|
||||
}
|
||||
|
||||
private static final Statement setReplay = new Statement("UPDATE Replay SET Replay = ? WHERE FightID = ?");
|
||||
private static final Statement setReplay = new Statement("INSERT INTO Replay (FightID, Replay) SET FightID = ?, Replay = ?");
|
||||
|
||||
@Override
|
||||
public void setReplay(int fightID, InputStream data) {
|
||||
setReplay.update(data, fightID);
|
||||
setReplay.update(fightID, data);
|
||||
}
|
||||
|
||||
private static final Statement create = new Statement("INSERT INTO FightPlayer (FightID, UserID, Team, Kit, Kills, IsOut) VALUES (?, ?, ?, ?, ?, ?)");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Ah ja, da ist ein INSERT nötig...