Skip to content

Commit e4eb312

Browse files
committed
MostRecentItems: not including items which updated = 'since'
1 parent c4d3e6b commit e4eb312

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/buddycloud/channelserver/db/jdbc/dialect/Sql92NodeStoreDialect.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ public class Sql92NodeStoreDialect implements NodeStoreSQLDialect {
158158
+ "(SELECT \"id\", \"node\", \"xml\", \"updated\", \"in_reply_to\" "
159159
+ "FROM \"items\" "
160160
+ "WHERE \"node\" = ? "
161-
+ "AND \"updated\" >= ? "
161+
+ "AND \"updated\" > ? "
162162
+ "ORDER BY \"updated\" DESC, \"id\" ASC LIMIT ?) ";
163163

164164
private static final String SELECT_COUNT_RECENT_ITEM_PARTS = ""
165165
+ "(SELECT COUNT(\"id\") "
166166
+ "FROM \"items\" "
167167
+ "WHERE \"node\" = ? "
168-
+ "AND \"updated\" >= ? "
168+
+ "AND \"updated\" > ? "
169169
+ "LIMIT ?)";
170170

171171
private static final String COUNT_ITEMS_FOR_NODE = "SELECT COUNT(*)"
@@ -578,4 +578,4 @@ public String selectNodeThreads() {
578578
public String countNodeThreads() {
579579
return COUNT_NODE_THREADS;
580580
}
581-
}
581+
}

0 commit comments

Comments
 (0)