mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:34:51 -04:00
Add LIMIT to scalar subquery
This commit is contained in:
parent
24e4c48468
commit
c818aa13eb
3 changed files with 10 additions and 5 deletions
|
@ -183,7 +183,8 @@ class RoomMemberStore(SQLBaseStore):
|
|||
|
||||
def _get_members_query_txn(self, txn, where_clause, where_values):
|
||||
del_sql = (
|
||||
"SELECT event_id FROM redactions WHERE redacts = e.event_id"
|
||||
"SELECT event_id FROM redactions WHERE redacts = e.event_id "
|
||||
"LIMIT 1"
|
||||
)
|
||||
|
||||
sql = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue