fix postgres offset query (#19088)

This commit is contained in:
sonika-shah 2024-12-16 15:14:29 +05:30 committed by GitHub
parent 10301f27c5
commit 8943559475
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 WHERE offset > :offset ORDER BY offset ASC LIMIT :limit")
"SELECT json FROM change_event ce WHERE ce.offset > :offset ORDER BY ce.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)