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

bpo-44087: Disallow instantiation of sqlite3.Statement #26567

Merged
merged 3 commits into from Jun 20, 2021

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Jun 6, 2021

The sqlite3.Statement type is not exposed, but it is possible to fetch it via the
sqlite3.Connection object. The statement type is an implementation detail; it
should not be possible to instantiate statement objects.

https://bugs.python.org/issue44087

@pablogsal pablogsal merged commit 7d0a47e into python:main Jun 20, 2021
@pablogsal pablogsal added the needs backport to 3.10 only security fixes label Jun 20, 2021
@miss-islington
Copy link
Contributor

Thanks @erlend-aasland for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 20, 2021
(cherry picked from commit 7d0a47e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jun 20, 2021
@bedevere-bot
Copy link

GH-26813 is a backport of this pull request to the 3.10 branch.

@erlend-aasland erlend-aasland deleted the sqlite-disallow-stmt-inst branch June 20, 2021 20:32
erlend-aasland pushed a commit to erlend-aasland/cpython that referenced this pull request Jun 20, 2021
…GH-26567)

(cherry picked from commit 7d0a47e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
pablogsal pushed a commit that referenced this pull request Jun 20, 2021
) (GH-26816)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
erlend-aasland pushed a commit to erlend-aasland/cpython that referenced this pull request Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants