mirror of
https://github.com/element-hq/synapse
synced 2024-06-30 16:03:32 +00:00
Prefer ? < a AND a <= ?
See https://github.com/element-hq/synapse/pull/17293#discussion_r1634863810 > FWIW I mildly prefer the styling `? < a AND a <= ?` as then my brain can more easily convert that to `a in (?...?]`
This commit is contained in:
parent
75b701f0ee
commit
c8a240f59d
|
@ -928,7 +928,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||
FROM events
|
||||
LEFT JOIN rejections USING (event_id)
|
||||
WHERE room_id = ?
|
||||
AND stream_ordering > ? AND stream_ordering <= ?
|
||||
AND ? < stream_ordering AND stream_ordering <= ?
|
||||
AND NOT outlier
|
||||
AND rejections.event_id IS NULL
|
||||
ORDER BY stream_ordering DESC
|
||||
|
|
Loading…
Reference in a new issue