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

move [R] warnings out of destructor path #797

Merged
merged 4 commits into from
May 15, 2024

Conversation

detule
Copy link
Collaborator

@detule detule commented Apr 27, 2024

Hi Team:

Just following up on a discussion where @hadley pointed out we should avoid Rcpp::warning in the destructor path as an error there, as a result of options(warn>2), and the subsequent longjmp, could lead to incorrect resource unwind.

Moving the warning up to the [R] frame.

Copy link
Collaborator

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only able to review the Cpp portions of this PR to the extent that LLMs are able to help me do so, but looking solid from what I can tell. :)

R/dbi-connection.R Outdated Show resolved Hide resolved
R/dbi-connection.R Outdated Show resolved Hide resolved
R/dbi-connection.R Outdated Show resolved Hide resolved
R/dbi-connection.R Outdated Show resolved Hide resolved
@simonpcouch simonpcouch merged commit 9cdcfb0 into r-dbi:main May 15, 2024
16 checks passed
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.

3 participants