Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 2019b60

Browse files
authored
Fix sqlite syntax for upserts. (#14171)
1 parent 7d59a51 commit 2019b60

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/14171.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Experimental support for [MSC3856](https://github.com/matrix-org/matrix-spec-proposals/pull/3856): threads list API.

synapse/storage/databases/main/relations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def threads_backfill_txn(txn: LoggingTransaction) -> int:
138138
if isinstance(txn.database_engine, PostgresEngine):
139139
txn.execute_values(sql % ("?",), rows, fetch=False)
140140
else:
141-
txn.execute_batch(sql % ("?, ?, ?, ?, ?",), rows)
141+
txn.execute_batch(sql % ("(?, ?, ?, ?, ?)",), rows)
142142

143143
# Mark the progress.
144144
self.db_pool.updates._background_update_progress_txn(

0 commit comments

Comments
 (0)