Unit test and a bug fix for storing temporary secrets.

This commit is contained in:
akwizgran
2012-09-24 18:44:27 +01:00
parent 2ff439ffe6
commit 9ee2b42c70
2 changed files with 95 additions and 1 deletions

View File

@@ -718,7 +718,8 @@ abstract class JdbcDatabase implements Database<Connection> {
// Store the new secrets
String sql = "INSERT INTO secrets"
+ " (contactId, transportId, period, secret, outgoing,"
+ " centre, bitmap)";
+ " centre, bitmap)"
+ " VALUES (?, ?, ?, ?, ?, ?, ?)";
ps = txn.prepareStatement(sql);
for(TemporarySecret s : secrets) {
ps.setInt(1, s.getContactId().getInt());