mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +01:00
Fixed a wrong argument number in a prepared statement.
This commit is contained in:
@@ -2451,7 +2451,7 @@ abstract class JdbcDatabase implements Database<Connection> {
|
|||||||
for(TransportUpdate u : updates) {
|
for(TransportUpdate u : updates) {
|
||||||
int txCount = txCounts.get(i++);
|
int txCount = txCounts.get(i++);
|
||||||
ps.setLong(1, calculateExpiry(now, maxLatency, txCount));
|
ps.setLong(1, calculateExpiry(now, maxLatency, txCount));
|
||||||
ps.setBytes(3, u.getId().getBytes());
|
ps.setBytes(4, u.getId().getBytes());
|
||||||
ps.addBatch();
|
ps.addBatch();
|
||||||
}
|
}
|
||||||
int [] batchAffected = ps.executeBatch();
|
int [] batchAffected = ps.executeBatch();
|
||||||
|
|||||||
Reference in New Issue
Block a user