0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-19 11:54:12 +01:00

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

View file

@ -255,7 +255,7 @@ class StateGroupWorkerStore(SQLBaseStore):
# Turns out that postgres doesn't like doing a list of OR's and # 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 # is about 1000x slower, so we just issue a query for each specific
# type seperately. # type seperately.
if types: if types is not None:
clause_to_args = [ clause_to_args = [
( (
"AND type = ? AND state_key = ?", "AND type = ? AND state_key = ?",