Files
synapse/rust
Erik Johnston 6ff584d371 Bind text parameters to json / jsonb / jsonpath columns in the Rust value mapping
A custom profile field value is a JSON document passed as text and cast
with `?::jsonb` in the query; reading one back binds a `jsonpath` text
parameter. `json`'s wire format is the raw text, and `jsonb` / `jsonpath`
share a one-byte version header followed by the text, so accept a `Text`
value for all three.

The matching query-side change (pass the value as a str instead of
`psycopg2.extras.Json`) is driver-independent and lives in its own PR.
2026-10-12 18:31:06 +00:00
..