Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nullable binds in the #[derive(Multiconnection)] implementation #3716

Merged

Conversation

weiznich
Copy link
Member

These were previously broken as they wouldn't set the inner bind value at all. We introduce a new InnerBindValueKind to handle them correctly.

In addition this commit improves the internal panic handling of the multi connection implementation by either changing existing unwrap() calls to return an error instead or by using expect() to provide an unique error message. This hopefully should make it easier to pin down future issues.

These were previously broken as they wouldn't set the inner bind value
at all. We introduce a new `InnerBindValueKind` to handle them
correctly.

In addition this commit improves the internal panic handling of the
multi connection implementation by either changing existing `unwrap()`
calls to return an error instead or by using `expect()` to provide an
unique error message. This hopefully should make it easier to pin down
future issues.
@weiznich weiznich requested a review from a team July 27, 2023 06:49
@weiznich weiznich added this pull request to the merge queue Aug 8, 2023
@weiznich weiznich added the maybe backport Maybe backport this pr to the latest diesel release label Aug 8, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 8, 2023
@weiznich weiznich added this pull request to the merge queue Aug 8, 2023
Merged via the queue into diesel-rs:master with commit f5db95e Aug 8, 2023
weiznich added a commit to weiznich/diesel that referenced this pull request Aug 18, 2023
…th_multiconnection

Fix nullable binds in the `#[derive(Multiconnection)]` implementation
@weiznich weiznich mentioned this pull request Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe backport Maybe backport this pr to the latest diesel release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant