From e8357a0df3b26ba8d2734a3ab357ca5e84059b05 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 2 Oct 2020 17:31:59 +0100 Subject: [PATCH] fix for psql --- synapse/storage/databases/main/events_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py index 05a05c3cbe..7ddc279508 100644 --- a/synapse/storage/databases/main/events_worker.py +++ b/synapse/storage/databases/main/events_worker.py @@ -822,7 +822,7 @@ class EventsWorkerStore(SQLBaseStore): rej.reason FROM events AS e JOIN event_json AS ej USING (event_id) - LEFT JOIN rooms r USING (room_id) + LEFT JOIN rooms r ON r.room_id = e.room_id LEFT JOIN rejections as rej USING (event_id) WHERE """