mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 22:53:52 +01:00
Make natural join inner join
Co-authored-by: Erik Johnston <erik@matrix.org>
This commit is contained in:
parent
fdf8346944
commit
e20f18a766
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ class EventForwardExtremitiesStore(SQLBaseStore):
|
||||||
sql = """
|
sql = """
|
||||||
SELECT event_id, state_group, depth, received_ts
|
SELECT event_id, state_group, depth, received_ts
|
||||||
FROM event_forward_extremities
|
FROM event_forward_extremities
|
||||||
NATURAL JOIN event_to_state_groups
|
INNER JOIN event_to_state_groups USING (event_id)
|
||||||
NATURAL JOIN events
|
INNER JOIN events INNER JOIN USING (event_id)
|
||||||
WHERE room_id = ?
|
WHERE room_id = ?
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue