summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/event_federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 7a02bf5e63..53feaa1960 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -399,7 +399,7 @@ class EventFederationStore(SQLBaseStore):
                 DELETE FROM stream_ordering_to_exterm
                 WHERE
                 room_id IN (
-                    SELECT room_id AS stream_ordering
+                    SELECT room_id
                     FROM stream_ordering_to_exterm
                     WHERE stream_ordering > ?
                 ) AND stream_ordering < ?