diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-19 15:59:48 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-19 15:59:48 +0000 |
commit | d7a0496f3ec534076121632352f44733253e1e16 (patch) | |
tree | bc981c1de8f70c9b79b26c97a3cedc11567e5255 /synapse/storage/transactions.py | |
parent | Remove redundant key (diff) | |
download | synapse-d7a0496f3ec534076121632352f44733253e1e16.tar.xz |
Convert storage layer to be mysql compatible
Diffstat (limited to 'synapse/storage/transactions.py')
-rw-r--r-- | synapse/storage/transactions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/transactions.py b/synapse/storage/transactions.py index 0b8a3b7a07..b5ed5453d8 100644 --- a/synapse/storage/transactions.py +++ b/synapse/storage/transactions.py @@ -121,8 +121,8 @@ class TransactionStore(SQLBaseStore): SentTransactions.select_statement("destination = ?"), ) - results = txn.execute(query, (destination,)) - results = SentTransactions.decode_results(results) + txn.execute(query, (destination,)) + results = SentTransactions.decode_results(txn) prev_txns = [r.transaction_id for r in results] @@ -266,7 +266,7 @@ class TransactionStore(SQLBaseStore): retry_last_ts, retry_interval): query = ( - "INSERT OR REPLACE INTO %s " + "REPLACE INTO %s " "(destination, retry_last_ts, retry_interval) " "VALUES (?, ?, ?) " ) % DestinationsTable.table_name |