Skip to content

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Dec 8, 2022

This is necessary because of our intent to change the default connection.

As described here https://pybind11.readthedocs.io/en/stable/advanced/smart_ptrs.html#std-shared-ptr
when using shared_ptrs with pybind, you should also return them as shared pointers, or pybind will wrap it in a shared_ptr and that can cause undefined behavior

This change was previously part of another PR, which has now been closed.

After this PR is merged I can submit the PR to add all methods of DuckDBPyConnection to the 'duckdb' module

@Mytherin Mytherin merged commit bdd4bf5 into duckdb:feature Dec 8, 2022
@Mytherin
Copy link
Collaborator

Mytherin commented Dec 8, 2022

Thanks!

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.

2 participants