mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix sqlite syntax for upserts. (#14171)
This commit is contained in:
parent
7d59a515bb
commit
2019b60f3b
1
changelog.d/14171.feature
Normal file
1
changelog.d/14171.feature
Normal file
@ -0,0 +1 @@
|
||||
Experimental support for [MSC3856](https://github.com/matrix-org/matrix-spec-proposals/pull/3856): threads list API.
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user