Skip to content
Snippets Groups Projects
Commit b0a1036d authored by David Baker's avatar David Baker
Browse files

Use explicit join

parent 8f99cd59
No related branches found
No related tags found
No related merge requests found
......@@ -127,9 +127,9 @@ class EventPushActionsStore(SQLBaseStore):
" FROM events"
" NATURAL JOIN receipts_linearized WHERE receipt_type = 'm.read'"
" GROUP BY room_id, user_id"
") AS rl "
"NATURAL JOIN events e "
"WHERE"
") AS rl"
" INNER JOIN events AS e USING (room_id, event_id)"
" WHERE"
" ep.room_id = rl.room_id"
" AND ("
" ep.topological_ordering > rl.topological_ordering"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment