mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-15 02:40:29 +00:00
test_batched_state_group_storing selected from `state_group_edges` with
`keyvalues={"state_group": str(context.state_group_after_event)}` — a Python
str bound to a BIGINT column. This only worked because psycopg2 coerces a
numeric string to an integer; the native Rust driver binds typed parameters and
rejects it (`error serializing parameter 0`), as it should — the column is an
integer.
Pass the int directly. Works identically on psycopg2 and sqlite, and lets the
test pass on the Rust backend without reintroducing loose int/text coercion in
the shim.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W3G4M92AmwSSZCbmtMJU3d