summary refs log tree commit diff
path: root/synapse/storage/transactions.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-24 16:17:39 +0000
committerErik Johnston <erik@matrix.org>2015-03-24 16:17:39 +0000
commit9115421ace4cd6cd1080ab99c997994541aea30b (patch)
tree36a8f7095fcf578b0e8bb7a28481ce51581204df /synapse/storage/transactions.py
parentRemove uses of REPLACE and ON CONFLICT IGNORE to make the SQL more portable. (diff)
downloadsynapse-9115421ace4cd6cd1080ab99c997994541aea30b.tar.xz
Use _simple_upsert
Diffstat (limited to 'synapse/storage/transactions.py')
-rw-r--r--synapse/storage/transactions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/transactions.py b/synapse/storage/transactions.py
index 1a5bb41cb2..c6e00ae3fe 100644
--- a/synapse/storage/transactions.py
+++ b/synapse/storage/transactions.py
@@ -84,14 +84,14 @@ class TransactionStore(SQLBaseStore):
 
     def _set_received_txn_response(self, txn, transaction_id, origin, code,
                                    response_json):
-        self._simple_update_one_txn(
+        self._simple_upsert_txn(
             txn,
             table=ReceivedTransactionsTable.table_name,
             keyvalues={
                 "transaction_id": transaction_id,
                 "origin": origin,
             },
-            updatevalues={
+            values={
                 "response_code": code,
                 "response_json": response_json,
             }