handle case where types is [] on postgres correctly

This commit is contained in:
Matthew Hodgson 2018-07-23 22:41:05 +01:00
parent 004a83b43a
commit efcdacad7d
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ?",