Minor improvements to the demo Application and a fix for when the ACK is empty
This commit is contained in:
@ -105,7 +105,8 @@ public class JdbcMessageRepository extends JdbcHelper implements MessageReposito
|
||||
try (
|
||||
Connection connection = config.getConnection();
|
||||
Statement stmt = connection.createStatement();
|
||||
ResultSet rs = stmt.executeQuery("SELECT count(*) FROM Message WHERE " + where)
|
||||
ResultSet rs = stmt.executeQuery("SELECT count(*) FROM Message WHERE " + where
|
||||
+ " ORDER BY received DESC")
|
||||
) {
|
||||
if (rs.next()) {
|
||||
return rs.getInt(1);
|
||||
|
Reference in New Issue
Block a user