mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-26 23:15:15 -04:00
Fix sqlite syntax for upserts. (#14171)
This commit is contained in:
parent
7d59a515bb
commit
2019b60f3b
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue