summary refs log tree commit diff
path: root/synapse/storage/room.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-03-02 10:16:24 +0000
committerKegan Dougal <kegan@matrix.org>2015-03-02 10:16:24 +0000
commit3d73383d185b41b9986366da8123255e3a8ce1e0 (patch)
tree95fdacb46fc8315abfa946bb1979a33fd7bc37a8 /synapse/storage/room.py
parentPR tweaks: set earlier on and use 'as json' for compat (diff)
downloadsynapse-3d73383d185b41b9986366da8123255e3a8ce1e0.tar.xz
Modify _simple_select_list to allow an empty WHERE clause. Use it for get_all_rooms and get_all_users.
Diffstat (limited to 'synapse/storage/room.py')
-rw-r--r--synapse/storage/room.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py
index 3a64693404..6bd0b22ae5 100644
--- a/synapse/storage/room.py
+++ b/synapse/storage/room.py
@@ -77,9 +77,8 @@ class RoomStore(SQLBaseStore):
         Returns:
             A list of namedtuples containing the room information.
         """
-        query = RoomsTable.select_statement()
-        return self._execute(
-            RoomsTable.decode_results, query,
+        return self._simple_select_list(
+            table="rooms", keyvalues=None, retcols=["room_id"]
         )
 
     @defer.inlineCallbacks