Unit tests and a bug fix for key management methods in JdbcDatabase.

This commit is contained in:
akwizgran
2012-09-25 17:09:59 +01:00
parent 9ee2b42c70
commit b2ee1b5332
2 changed files with 122 additions and 3 deletions

View File

@@ -2347,7 +2347,7 @@ abstract class JdbcDatabase implements Database<Connection> {
long period, long centre, byte[] bitmap) throws DbException {
PreparedStatement ps = null;
try {
String sql = "UPDATE secrets SET centre = ? AND bitmap = ?"
String sql = "UPDATE secrets SET centre = ?, bitmap = ?"
+ " WHERE contactId = ? AND transportId = ? AND period = ?";
ps = txn.prepareStatement(sql);
ps.setLong(1, centre);