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:
Eric Eastwood 2024-06-11 16:00:02 -05:00
parent 75b701f0ee
commit c8a240f59d

View file

@ -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