Skip to content

Commit

Permalink
query fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolfo committed Dec 7, 2024
1 parent bc0003e commit 2a6f164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/ddl/2-append_events.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ BEGIN
SELECT ARRAY(SELECT UNNEST(_domain_ids) ORDER BY 1) INTO _domain_ids;

-- Fetch the row with the max sequence number from the events table
SELECT *
SELECT e.sequence_id, e.correlation_id
INTO previousEventRow
FROM events e
WHERE e.sequence_id = (SELECT max(e2.sequence_id)
Expand Down

0 comments on commit 2a6f164

Please sign in to comment.