diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 6176838aa6389f2a50de7f9df71dcea2959a490d..f5906fcd5468477d307b5e7917a1fe737544eabc 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -1718,4 +1718,4 @@ def make_in_list_sql_clause( # stats easier to understand. return "%s = ANY(?)" % (column,), [list(iterable)] else: - return "%s IN (%s)" % (column, ",".join("?" for _ in iterable)), iterable + return "%s IN (%s)" % (column, ",".join("?" for _ in iterable)), list(iterable)