Fix up RoomMemberStore to work with the new schema.

This commit is contained in:
Erik Johnston 2014-08-14 16:02:10 +01:00
parent 6d6a1c3454
commit 937c175029
3 changed files with 80 additions and 98 deletions

View file

@ -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):