summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-10-13 12:53:24 -0400
committerGitHub <noreply@github.com>2022-10-13 12:53:24 -0400
commit2019b60f3bb5a505fc730f38a4b1accbabe444bf (patch)
tree488f424212cda30b8597bce518f863e379013620 /synapse
parentProperly return the thread ID down sync. (#14159) (diff)
downloadsynapse-2019b60f3bb5a505fc730f38a4b1accbabe444bf.tar.xz
Fix sqlite syntax for upserts. (#14171)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/databases/main/relations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/relations.py b/synapse/storage/databases/main/relations.py
index ac9b96ab44..7c54ce0b2e 100644
--- a/synapse/storage/databases/main/relations.py
+++ b/synapse/storage/databases/main/relations.py
@@ -138,7 +138,7 @@ class RelationsWorkerStore(SQLBaseStore):
             if isinstance(txn.database_engine, PostgresEngine):
                 txn.execute_values(sql % ("?",), rows, fetch=False)
             else:
-                txn.execute_batch(sql % ("?, ?, ?, ?, ?",), rows)
+                txn.execute_batch(sql % ("(?, ?, ?, ?, ?)",), rows)
 
             # Mark the progress.
             self.db_pool.updates._background_update_progress_txn(