Skip to content

fix(db): type provisioning format() parameters - #114

Merged
iamjr15 merged 1 commit into
mainfrom
fix/provision-param-types
Aug 2, 2026
Merged

fix(db): type provisioning format() parameters#114
iamjr15 merged 1 commit into
mainfrom
fix/provision-param-types

Conversation

@iamjr15

@iamjr15 iamjr15 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Found by the fresh-project e2e at first live execution of provisioning: format()'s variadic args are "any", so bind-parameter types cannot be inferred → could not determine data type of parameter $1. Explicit ::text casts on the two parameters. The vault calls are unaffected (typed function signatures drive inference). Repo-wide sweep shows this was the only format() bind site.

Verification notes

  • pnpm lint / pnpm typecheck (single-line SQL string change in an operational script; no build-surface impact — full chain ran green on the identical tree two merges ago)
  • Post-merge: wizard resume executes provisioning + probes live on the fresh project — the definitive test.

format()'s variadic arguments are "any", so Postgres cannot infer bind-parameter
types for them; the role-password statement builder failed at first live
execution with 'could not determine data type of parameter $1'. Explicit
::text casts fix inference; the vault calls already infer from typed function
signatures.
@iamjr15
iamjr15 merged commit 806cda4 into main Aug 2, 2026
4 checks passed
@iamjr15
iamjr15 deleted the fix/provision-param-types branch August 2, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant