Skip to content

Commit

Permalink
Adjusted reading of results when returning notification IDs after ins…
Browse files Browse the repository at this point in the history
…erting events - seems the NOTIFY doesn't appear in exactly the same place with Postgres v13?
  • Loading branch information
johnbywater committed Feb 4, 2025
1 parent ee93f43 commit 75e1c04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/persistence_tests/test_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ def make_events() -> List[StoredEvent]:
recorder = PostgresApplicationRecorder(
datastore=self.datastore, events_table_name=EVENTS_TABLE_NAME
)
recorder.insert_events_statement = recorder.insert_events_statement.partition("RETURNING")[0]
recorder.insert_events_statement = (
recorder.insert_events_statement.partition("RETURNING")[0]
)
recorder.create_table()
recorder.insert_events(make_events())

Expand Down

0 comments on commit 75e1c04

Please sign in to comment.