Remove spurious AS clause

This commit is contained in:
Erik Johnston 2016-09-21 16:28:47 +01:00
parent dc78db8c56
commit dc692556d6
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ class EventFederationStore(SQLBaseStore):
DELETE FROM stream_ordering_to_exterm DELETE FROM stream_ordering_to_exterm
WHERE WHERE
room_id IN ( room_id IN (
SELECT room_id AS stream_ordering SELECT room_id
FROM stream_ordering_to_exterm FROM stream_ordering_to_exterm
WHERE stream_ordering > ? WHERE stream_ordering > ?
) AND stream_ordering < ? ) AND stream_ordering < ?