0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-09-27 12:09:06 +02:00

Make natural join inner join

Co-authored-by: Erik Johnston <erik@matrix.org>
This commit is contained in:
Jason Robinson 2021-01-26 10:13:35 +02:00 committed by GitHub
parent fdf8346944
commit e20f18a766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = ?
"""