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

moved PhantomData<'con> to Raii to prevent Raii drop after 'con drop when Statement bound to temporary at final expression in block #137

Merged
merged 2 commits into from May 9, 2020

Conversation

jpastuszek
Copy link
Contributor

Fixes #136.
This is a breaking change.

For an explanation why ; are needed at the end of a block in the tests see: https://www.reddit.com/r/rust/comments/6dynjz/psa_temporaries_in_final_expression_in_block_live/

Note that I did not get the test to run an pass as I don't have a setup for that. Also, I did not try this with my projects as I am still not migrated to latest odbc version.

…when Statement bound to temporary at final expression in block
@Koka
Copy link
Owner

Koka commented May 7, 2020

Looks like tests are massively failing with borrowed value does not live long enough

@Koka Koka merged commit f53fbf8 into Koka:master May 9, 2020
@Koka
Copy link
Owner

Koka commented May 9, 2020

Great, published as 0.17.0

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.

Invalid handle panic due to connection dropped before statement
2 participants