Use explicit join

pull/759/head
David Baker 2016-04-29 19:28:56 +01:00
parent 8f99cd5996
commit b0a1036d93
1 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ class EventPushActionsStore(SQLBaseStore):
" NATURAL JOIN receipts_linearized WHERE receipt_type = 'm.read'"
" GROUP BY room_id, user_id"
") AS rl"
"NATURAL JOIN events e "
" INNER JOIN events AS e USING (room_id, event_id)"
" WHERE"
" ep.room_id = rl.room_id"
" AND ("