mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 10:14:58 -05:00
Add appopriate framing clause
This commit is contained in:
parent
d25c20ccbe
commit
fadb01551a
@ -324,6 +324,7 @@ class StateStore(SQLBaseStore):
|
|||||||
)
|
)
|
||||||
SELECT type, state_key, last_value(event_id) OVER (
|
SELECT type, state_key, last_value(event_id) OVER (
|
||||||
PARTITION BY type, state_key ORDER BY state_group ASC
|
PARTITION BY type, state_key ORDER BY state_group ASC
|
||||||
|
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
|
||||||
) AS event_id FROM state_groups_state
|
) AS event_id FROM state_groups_state
|
||||||
WHERE state_group IN (
|
WHERE state_group IN (
|
||||||
SELECT state_group FROM state
|
SELECT state_group FROM state
|
||||||
|
Loading…
Reference in New Issue
Block a user