summary refs log tree commit diff
path: root/synapse/storage/database.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-05-14 10:08:45 +0100
committerRichard van der Hoff <richard@matrix.org>2020-05-14 10:08:45 +0100
commit6bd2a39a7d3dd4d6c6d89828139b905a0eaa051c (patch)
tree8f576436f72b892af6408f3d887c1f8ce9f55046 /synapse/storage/database.py
parentMerge remote-tracking branch 'origin/release-v1.13.0' into matrix-org-hotfixes (diff)
parentStop `get_joined_users` corruption from custom statuses (#7376) (diff)
downloadsynapse-6bd2a39a7d3dd4d6c6d89828139b905a0eaa051c.tar.xz
Merge branch 'release-v1.13.0' into matrix-org-hotfixes
Diffstat (limited to 'synapse/storage/database.py')
-rw-r--r--synapse/storage/database.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py

index 2b635d6ca0..c3d0863429 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py
@@ -214,9 +214,9 @@ class LoggingTransaction: def executemany(self, sql: str, *args: Any): self._do_execute(self.txn.executemany, sql, *args) - def _make_sql_one_line(self, sql): + def _make_sql_one_line(self, sql: str) -> str: "Strip newlines out of SQL so that the loggers in the DB are on one line" - return " ".join(l.strip() for l in sql.splitlines() if l.strip()) + return " ".join(line.strip() for line in sql.splitlines() if line.strip()) def _do_execute(self, func, sql, *args): sql = self._make_sql_one_line(sql)