mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-21 08:33:59 +01:00
handle case where types is [] on postgres correctly
This commit is contained in:
parent
004a83b43a
commit
efcdacad7d
1 changed files with 1 additions and 1 deletions
|
@ -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 = ?",
|
||||||
|
|
Loading…
Reference in a new issue