Fix query for get_unread_push_actions_for_user_in_range

This commit is contained in:
Erik Johnston 2016-04-14 11:08:31 +01:00
parent ceeb5b909f
commit a2546b9082

View File

@ -133,9 +133,10 @@ class EventPushActionsStore(SQLBaseStore):
" ep.topological_ordering > rl.topological_ordering"
" OR ("
" ep.topological_ordering = rl.topological_ordering"
" AND ep.stream_ordering > rl.stream_ordering"
" )"
" )"
" AND ep.stream_ordering > ?"
" )"
" )"
" AND ep.user_id = ?"
" AND ep.user_id = rl.user_id"
)