mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix order of ON constraints in _get_rooms_for_user_where_membership_is_txn
This commit is contained in:
parent
ca2abf9a6e
commit
cf1100887b
@ -142,11 +142,11 @@ class RoomMemberStore(SQLBaseStore):
|
|||||||
|
|
||||||
sql = (
|
sql = (
|
||||||
"SELECT m.room_id, m.sender, m.membership, m.event_id, e.stream_ordering"
|
"SELECT m.room_id, m.sender, m.membership, m.event_id, e.stream_ordering"
|
||||||
" FROM room_memberships as m"
|
" FROM current_state_events as c"
|
||||||
" INNER JOIN current_state_events as c"
|
" INNER JOIN room_memberships as m"
|
||||||
" ON e.event_id = c.event_id "
|
|
||||||
" INNER JOIN events as e "
|
|
||||||
" ON m.event_id = c.event_id"
|
" ON m.event_id = c.event_id"
|
||||||
|
" INNER JOIN events as e"
|
||||||
|
" ON e.event_id = c.event_id"
|
||||||
" AND m.room_id = c.room_id"
|
" AND m.room_id = c.room_id"
|
||||||
" AND m.user_id = c.state_key"
|
" AND m.user_id = c.state_key"
|
||||||
" WHERE %s"
|
" WHERE %s"
|
||||||
|
Loading…
Reference in New Issue
Block a user