summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-25 17:15:54 +0100
committerErik Johnston <erik@matrix.org>2019-07-29 13:04:10 +0100
commit45df38e61bb876208d032cf3480230cecff6cdd8 (patch)
tree530b49e9828b3039c343c851dce011b588f06e2a /synapse/storage
parentMerge pull request #5780 from matrix-org/baboliver/loopingcall-args (diff)
downloadsynapse-45df38e61bb876208d032cf3480230cecff6cdd8.tar.xz
Fix current_state bg update to work on old SQLite
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/roommember.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index cb88e49b51..a1b9fd8199 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -870,10 +870,10 @@ class RoomMemberStore(RoomMemberWorkerStore):
                 next_room, = row
 
                 sql = """
-                    UPDATE current_state_events AS c
+                    UPDATE current_state_events
                     SET membership = (
                         SELECT membership FROM room_memberships
-                        WHERE event_id = c.event_id
+                        WHERE event_id = current_state_events.event_id
                     )
                     WHERE room_id = ?
                 """