Fixed a wrong argument number in a prepared statement.

This commit is contained in:
akwizgran
2013-04-07 21:09:42 +01:00
parent 8c4ba716ff
commit ce7e9e73c9

View File

@@ -2451,7 +2451,7 @@ abstract class JdbcDatabase implements Database<Connection> {
for(TransportUpdate u : updates) {
int txCount = txCounts.get(i++);
ps.setLong(1, calculateExpiry(now, maxLatency, txCount));
ps.setBytes(3, u.getId().getBytes());
ps.setBytes(4, u.getId().getBytes());
ps.addBatch();
}
int [] batchAffected = ps.executeBatch();