mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 05:49:23 -05:00
Fix ambiguous column name that would prevent use of MSC2716 History Import when using Postgres as a database. (#12843)
This commit is contained in:
parent
1885ee0113
commit
e768644368
1
changelog.d/12843.bugfix
Normal file
1
changelog.d/12843.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix bug where servers using a Postgres database would fail to backfill from an insertion event when MSC2716 is enabled (`experimental_features.msc2716_enabled`).
|
@ -1057,7 +1057,7 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas
|
|||||||
INNER JOIN batch_events AS c
|
INNER JOIN batch_events AS c
|
||||||
ON i.next_batch_id = c.batch_id
|
ON i.next_batch_id = c.batch_id
|
||||||
/* Get the depth of the batch start event from the events table */
|
/* Get the depth of the batch start event from the events table */
|
||||||
INNER JOIN events AS e USING (event_id)
|
INNER JOIN events AS e ON c.event_id = e.event_id
|
||||||
/* Find an insertion event which matches the given event_id */
|
/* Find an insertion event which matches the given event_id */
|
||||||
WHERE i.event_id = ?
|
WHERE i.event_id = ?
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
|
Loading…
Reference in New Issue
Block a user