fix: annotate nullable text params with ::text to prevent 42P08
node-postgres sends JS null without a type tag, so Postgres has to infer each parameter's type from how it's used in the SQL. When a nullable text param (order_by, retired, expired) appears only in IS NULL checks and OR clauses, inference can give up and raise 42P08 "could not determine data type of parameter $N" — observed on /governance/dreps?retired=true. Pinning the parameter slot's type with $N::text bypasses inference. The ::text is on the parameter, not the value — works equally for NULL and 'true'/'false'. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>