Unit tests and a bugfix for the new database methods.

This commit is contained in:
akwizgran
2011-07-26 16:46:50 +01:00
parent 10edc05dff
commit 1ea385e7af
2 changed files with 187 additions and 0 deletions

View File

@@ -1405,6 +1405,8 @@ abstract class JdbcDatabase implements Database<Connection> {
+ " ON messages.groupId = contactSubscriptions.groupId"
+ " WHERE messageId = ? AND contactId = ?";
ps = txn.prepareStatement(sql);
ps.setBytes(1, m.getBytes());
ps.setInt(2, c.getInt());
rs = ps.executeQuery();
boolean found = rs.next();
assert found;