Skip to content

Conversation

csandven
Copy link

fixes #3563

@abonander
Copy link
Collaborator

This is actually intentional because it's more complex if you actually want to handle the error in-place. You have to match on the sqlx::Error despite knowing that it's going to be Error::Encode.

What we should probably do here is return a new error type, e.g. EncodeError and have sqlx::Error implement From<EncodeError> so that you can use the ? operator if you want.

@abonander abonander closed this Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PgArguments::add returns a BoxDynError
2 participants