Fix sqlite syntax for upserts. (#14171)
This commit is contained in:
parent
7d59a515bb
commit
2019b60f3b
|
@ -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):
|
if isinstance(txn.database_engine, PostgresEngine):
|
||||||
txn.execute_values(sql % ("?",), rows, fetch=False)
|
txn.execute_values(sql % ("?",), rows, fetch=False)
|
||||||
else:
|
else:
|
||||||
txn.execute_batch(sql % ("?, ?, ?, ?, ?",), rows)
|
txn.execute_batch(sql % ("(?, ?, ?, ?, ?)",), rows)
|
||||||
|
|
||||||
# Mark the progress.
|
# Mark the progress.
|
||||||
self.db_pool.updates._background_update_progress_txn(
|
self.db_pool.updates._background_update_progress_txn(
|
||||||
|
|
Loading…
Reference in New Issue