Skip to content

Commit

Permalink
Fix SQLite3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jan 5, 2024
1 parent c292aea commit 034663c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/events_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ def _fetch_event_rows(
room_version_id=row[5],
rejected_reason=row[6],
redactions=[],
outlier=row[7],
outlier=bool(row[7]), # This is an int in SQLite3
)

# check for redactions
Expand Down
2 changes: 1 addition & 1 deletion tests/storage/databases/main/test_events_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def _populate_events(self) -> None:
)

self.event_ids: List[str] = []
for idx in range(20):
for idx in range(1, 21): # Stream ordering starts at 1.
event_json = {
"type": f"test {idx}",
"room_id": self.room_id,
Expand Down

0 comments on commit 034663c

Please sign in to comment.