Remove unnecessary COALESCE

This commit is contained in:
Erik Johnston 2018-05-30 11:45:58 +01:00
parent f687d8fae2
commit 9e1d3f119a
1 changed files with 2 additions and 2 deletions

View File

@ -1456,7 +1456,7 @@ class EventsStore(EventsWorkerStore):
"room_id": room_id, "room_id": room_id,
"chunk_id": chunk_id, "chunk_id": chunk_id,
}, },
retcol="COALESCE(MAX(topological_ordering), 0)", retcol="MAX(topological_ordering)",
) )
new_topo += 1 new_topo += 1
@ -1473,7 +1473,7 @@ class EventsStore(EventsWorkerStore):
"room_id": room_id, "room_id": room_id,
"chunk_id": chunk_id, "chunk_id": chunk_id,
}, },
retcol="COALESCE(MIN(topological_ordering), 0)", retcol="MIN(topological_ordering)",
) )
new_topo -= 1 new_topo -= 1
else: else: