mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-21 09:58:46 -04:00
Disambiguate queries on state_key
(#11497)
We're going to add a `state_key` column to the `events` table, so we need to add some disambiguation to queries which use it.
This commit is contained in:
parent
d26808dd85
commit
5640992d17
7 changed files with 21 additions and 16 deletions
|
@ -575,9 +575,9 @@ class PersistEventsStore:
|
|||
# fetch their auth event info.
|
||||
while missing_auth_chains:
|
||||
sql = """
|
||||
SELECT event_id, events.type, state_key, chain_id, sequence_number
|
||||
SELECT event_id, events.type, se.state_key, chain_id, sequence_number
|
||||
FROM events
|
||||
INNER JOIN state_events USING (event_id)
|
||||
INNER JOIN state_events AS se USING (event_id)
|
||||
LEFT JOIN event_auth_chains USING (event_id)
|
||||
WHERE
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue