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

Fix sqlite syntax for upserts. #14171

Merged
merged 2 commits into from
Oct 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/14171.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Experimental support for [MSC3856](https://github.com/matrix-org/matrix-spec-proposals/pull/3856): threads list API.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def threads_backfill_txn(txn: LoggingTransaction) -> int:
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(
Expand Down