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

Commit

Permalink
Fix sqlite syntax for upserts. (#14171)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Oct 13, 2022
1 parent 7d59a51 commit 2019b60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 2019b60

Please sign in to comment.