Go back to storing JSON in TEXT

This commit is contained in:
Erik Johnston 2015-04-16 11:17:52 +01:00
parent bc9e69e160
commit b8092fbc82
11 changed files with 20 additions and 41 deletions

View file

@ -366,9 +366,7 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
new_txn_id = max(highest_txn_id, last_txn_id) + 1
# Insert new txn into txn table
event_ids = buffer(
json.dumps([e.event_id for e in events]).encode("utf8")
)
event_ids = json.dumps([e.event_id for e in events])
txn.execute(
"INSERT INTO application_services_txns(as_id, txn_id, event_ids) "
"VALUES(?,?,?)",