Skip to content
Snippets Groups Projects
Unverified Commit e20f18a7 authored by Jason Robinson's avatar Jason Robinson Committed by GitHub
Browse files

Make natural join inner join


Co-authored-by: default avatarErik Johnston <erik@matrix.org>
parent fdf83469
No related branches found
No related tags found
No related merge requests found
......@@ -88,8 +88,8 @@ class EventForwardExtremitiesStore(SQLBaseStore):
sql = """
SELECT event_id, state_group, depth, received_ts
FROM event_forward_extremities
NATURAL JOIN event_to_state_groups
NATURAL JOIN events
INNER JOIN event_to_state_groups USING (event_id)
INNER JOIN events INNER JOIN USING (event_id)
WHERE room_id = ?
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment