Use explicit join
parent
8f99cd5996
commit
b0a1036d93
|
@ -127,9 +127,9 @@ class EventPushActionsStore(SQLBaseStore):
|
||||||
" FROM events"
|
" FROM events"
|
||||||
" NATURAL JOIN receipts_linearized WHERE receipt_type = 'm.read'"
|
" NATURAL JOIN receipts_linearized WHERE receipt_type = 'm.read'"
|
||||||
" GROUP BY room_id, user_id"
|
" GROUP BY room_id, user_id"
|
||||||
") AS rl "
|
") AS rl"
|
||||||
"NATURAL JOIN events e "
|
" INNER JOIN events AS e USING (room_id, event_id)"
|
||||||
"WHERE"
|
" WHERE"
|
||||||
" ep.room_id = rl.room_id"
|
" ep.room_id = rl.room_id"
|
||||||
" AND ("
|
" AND ("
|
||||||
" ep.topological_ordering > rl.topological_ordering"
|
" ep.topological_ordering > rl.topological_ordering"
|
||||||
|
|
Loading…
Reference in New Issue