1
0

SQLite compatible cast

This commit is contained in:
Eric Eastwood
2022-11-22 00:28:31 -06:00
parent 2939eadd00
commit 65a5d8ffdb

View File

@@ -318,9 +318,10 @@ class StateGroupDataStore(StateBackgroundUpdateStore, SQLBaseStore):
def _get_state_for_client_filtering_txn(
txn: LoggingTransaction, groups: Iterable[int]
) -> Mapping[int, MutableStateMap[str]]:
sql = """
WITH RECURSIVE sgs(state_group) AS (
VALUES(?::bigint)
VALUES(CAST(? AS bigint))
UNION ALL
SELECT prev_state_group FROM state_group_edges e, sgs s
WHERE s.state_group = e.state_group