mirror of
https://github.com/element-hq/synapse
synced 2024-10-01 05:12:41 +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
1 changed files with 1 additions and 1 deletions
|
@ -928,7 +928,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
||||||
FROM events
|
FROM events
|
||||||
LEFT JOIN rejections USING (event_id)
|
LEFT JOIN rejections USING (event_id)
|
||||||
WHERE room_id = ?
|
WHERE room_id = ?
|
||||||
AND stream_ordering > ? AND stream_ordering <= ?
|
AND ? < stream_ordering AND stream_ordering <= ?
|
||||||
AND NOT outlier
|
AND NOT outlier
|
||||||
AND rejections.event_id IS NULL
|
AND rejections.event_id IS NULL
|
||||||
ORDER BY stream_ordering DESC
|
ORDER BY stream_ordering DESC
|
||||||
|
|
Loading…
Reference in a new issue