summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-07-23 22:41:05 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-07-23 22:41:05 +0100
commitefcdacad7d1b7f52f879179701c7e0d9b763511f (patch)
tree1f13dd8aba8f441fa4406c99673830f646b34fdf /synapse
parentchangelog (diff)
downloadsynapse-efcdacad7d1b7f52f879179701c7e0d9b763511f.tar.xz
handle case where types is [] on postgres correctly
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 40ca8bd2a2..f99d3871e4 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -255,7 +255,7 @@ class StateGroupWorkerStore(SQLBaseStore):
             # Turns out that postgres doesn't like doing a list of OR's and
             # is about 1000x slower, so we just issue a query for each specific
             # type seperately.
-            if types:
+            if types is not None:
                 clause_to_args = [
                     (
                         "AND type = ? AND state_key = ?",