Fix sqlite syntax for upserts. (#14171)

This commit is contained in:
Patrick Cloke 2022-10-13 12:53:24 -04:00 committed by GitHub
parent 7d59a515bb
commit 2019b60f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Experimental support for [MSC3856](https://github.com/matrix-org/matrix-spec-proposals/pull/3856): threads list API.

View File

@ -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(