summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-05-30 11:45:58 +0100
committerErik Johnston <erik@matrix.org>2018-05-30 11:45:58 +0100
commit9e1d3f119a7f80cf068d42ec2a55a1f40ff0c6d2 (patch)
treedb729301ef3e73633617b89b6923a01657249f34
parentComments (diff)
downloadsynapse-9e1d3f119a7f80cf068d42ec2a55a1f40ff0c6d2.tar.xz
Remove unnecessary COALESCE
-rw-r--r--synapse/storage/events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index da053f0b18..cab5c18637 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -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: