mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 13:09:22 -05:00
handle case where types is [] on postgres correctly
This commit is contained in:
parent
004a83b43a
commit
efcdacad7d
@ -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 = ?",
|
||||
|
Loading…
Reference in New Issue
Block a user