summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-14 16:02:10 +0100
committerErik Johnston <erik@matrix.org>2014-08-14 16:02:10 +0100
commit937c175029be9bcf2ba26c27ecb879292e8c555a (patch)
treec0b70bb4451de6b2617161e6adbb10a155de4acf /synapse/storage/_base.py
parentActually encode dicts as json in the DB (diff)
downloadsynapse-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.py6
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):