diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-14 16:02:10 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-14 16:02:10 +0100 |
commit | 937c175029be9bcf2ba26c27ecb879292e8c555a (patch) | |
tree | c0b70bb4451de6b2617161e6adbb10a155de4acf /synapse/storage/_base.py | |
parent | Actually encode dicts as json in the DB (diff) | |
download | synapse-937c175029be9bcf2ba26c27ecb879292e8c555a.tar.xz |
Fix up RoomMemberStore to work with the new schema.
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 5cb26ad6db..befeb55b25 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -64,7 +64,11 @@ class SQLBaseStore(object): def interaction(txn): cursor = txn.execute(query, args) - return decoder(cursor) + if decoder: + return decoder(cursor) + else: + return cursor + return self._db_pool.runInteraction(interaction) def _execut_query(self, query, *args): |