summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <dawagner@gmail.com>2015-11-23 18:54:41 +0000
committerDaniel Wagner-Hall <dawagner@gmail.com>2015-11-23 18:54:41 +0000
commitdf7cf6c0ebee59b2fe17a450de01519ee3093195 (patch)
tree47e2d083ff376a92a7f5acac69a45fbc17c1d3e1 /synapse
parentFix SQL for postgres (diff)
downloadsynapse-df7cf6c0ebee59b2fe17a450de01519ee3093195.tar.xz
Fix SQL for postgres again
Diffstat (limited to '')
-rw-r--r--synapse/storage/roommember.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index c83c043f9b..69398b7c8e 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -160,7 +160,7 @@ class RoomMemberStore(SQLBaseStore):
 
     def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
                                                     membership_list):
-        where_clause = "user_id = ? AND (%s) AND forgotten == 0" % (
+        where_clause = "user_id = ? AND (%s) AND forgotten = 0" % (
             " OR ".join(["membership = ?" for _ in membership_list]),
         )