Update replay stuff #188
@ -148,7 +148,7 @@ public class SQLProvider implements Provider {
|
||||
});
|
||||
}
|
||||
|
||||
private static final Statement getReplay = new Statement("SELECT Replay FROM Replay WHERE id = ?");
|
||||
private static final Statement getReplay = new Statement("SELECT Replay FROM Replay WHERE FightID = ?");
|
||||
|
||||
@Override
|
||||
public void getReplay(int fightID, Consumer<InputStream> reader) {
|
||||
getReplay.select(rs -> {
|
||||
@ -158,7 +158,7 @@ public class SQLProvider implements Provider {
|
||||
}, fightID);
|
||||
}
|
||||
|
||||
private static final Statement setReplay = new Statement("UPDATE Replay SET Replay = ? WHERE id = ?");
|
||||
private static final Statement setReplay = new Statement("UPDATE Replay SET Replay = ? WHERE FightID = ?");
|
||||
Lixfel
hat
Ah ja, da ist ein INSERT nötig... Ah ja, da ist ein INSERT nötig...
|
||||
@Override
|
||||
public void setReplay(int fightID, InputStream data) {
|
||||
setReplay.update(data, fightID);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Würde es schon bei FightID als id belassen, aber passt ansonsten.