summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-21 16:28:47 +0100
committerErik Johnston <erik@matrix.org>2016-09-21 16:28:47 +0100
commitdc692556d6b3e65eec133f5bfa5dbbcd7c3c1350 (patch)
tree5ddab40287e77b93bfa685f658012ba4719bdca9
parentUpdate correct table (diff)
downloadsynapse-dc692556d6b3e65eec133f5bfa5dbbcd7c3c1350.tar.xz
Remove spurious AS clause
-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 < ?