Files
synapse/tests
Erik JohnstonandClaude Opus 4.8 089cc270e5 Bind an int, not a stringified int, to a BIGINT column in the state test
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
2026-07-06 10:14:31 +00:00
..
2026-06-02 11:05:38 +01:00