Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fixup membership query
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Dec 14, 2016
1 parent bae1115 commit c3208e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/roommember.py
Expand Up @@ -483,9 +483,9 @@ def _background_add_membership_profile(self, progress, batch_size):

def add_membership_profile_txn(txn):
sql = ("""
SELECT stream_ordering, event_id, room_id, content
SELECT stream_ordering, event_id, events.room_id, content
FROM events
INNER JOIN room_memberships USING (room_id, event_id)
INNER JOIN room_memberships USING (event_id)
WHERE ? <= stream_ordering AND stream_ordering < ?
AND type = 'm.room.member'
ORDER BY stream_ordering DESC
Expand Down

0 comments on commit c3208e4

Please sign in to comment.