diff options
author | Daniel Wagner-Hall <dawagner@gmail.com> | 2015-11-23 18:48:53 +0000 |
---|---|---|
committer | Daniel Wagner-Hall <dawagner@gmail.com> | 2015-11-23 18:48:53 +0000 |
commit | 3e573a5c6b1206ceb6f2fc4a48e7a122ce468a89 (patch) | |
tree | c7c59fef6666c873c3a3e9871daca5e885ddb496 /synapse/storage | |
parent | Remove size specifier for database column (diff) | |
download | synapse-3e573a5c6b1206ceb6f2fc4a48e7a122ce468a89.tar.xz |
Fix SQL for postgres
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/roommember.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index d32ce1ab1e..c83c043f9b 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 NOT forgotten" % ( + where_clause = "user_id = ? AND (%s) AND forgotten == 0" % ( " OR ".join(["membership = ?" for _ in membership_list]), ) |