Skip to content

Commit

Permalink
fix postgres offset query (#19088)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonika-shah authored Dec 16, 2024
1 parent 10301f2 commit 8943559
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4152,7 +4152,7 @@ List<String> listWithoutEntityFilter(
@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)
Expand Down

0 comments on commit 8943559

Please sign in to comment.