fix: Apply offset. (#18957)

This commit is contained in:
Siddhant 2024-12-14 22:30:58 +05:30 committed by GitHub
parent 497b477be3
commit a3cfd8a3f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4152,7 +4152,7 @@ public interface CollectionDAO {
@Bind("eventType") String eventType, @Bind("timestamp") long timestamp);
@SqlQuery(
"SELECT json FROM change_event ce where ce.offset > :offset ORDER BY ce.eventTime ASC LIMIT :limit")
"SELECT json FROM change_event WHERE offset > :offset ORDER BY offset ASC LIMIT :limit")
List<String> list(@Bind("limit") long limit, @Bind("offset") long offset);
@ConnectionAwareSqlQuery(value = "SELECT MAX(offset) FROM change_event", connectionType = MYSQL)