mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 07:05:12 +00:00
Remove unnecessary COALESCE
This commit is contained in:
parent
f687d8fae2
commit
9e1d3f119a
1 changed files with 2 additions and 2 deletions
|
@ -1456,7 +1456,7 @@ class EventsStore(EventsWorkerStore):
|
|||
"room_id": room_id,
|
||||
"chunk_id": chunk_id,
|
||||
},
|
||||
retcol="COALESCE(MAX(topological_ordering), 0)",
|
||||
retcol="MAX(topological_ordering)",
|
||||
)
|
||||
new_topo += 1
|
||||
|
||||
|
@ -1473,7 +1473,7 @@ class EventsStore(EventsWorkerStore):
|
|||
"room_id": room_id,
|
||||
"chunk_id": chunk_id,
|
||||
},
|
||||
retcol="COALESCE(MIN(topological_ordering), 0)",
|
||||
retcol="MIN(topological_ordering)",
|
||||
)
|
||||
new_topo -= 1
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue