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-44329: Refactor sqlite3 statement creation #26566

Merged
merged 3 commits into from Jun 8, 2021

Conversation

erlend-aasland
Copy link
Contributor

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

We now avoid unneeded statement creation and object allocation.

https://bugs.python.org/issue44329

Call SQLite API's first, and return early in case of error. At the end,
allocate the object and initialise members. We now avoid unneeded
alloc/dealloc's in case the statement creation fails.
@pablogsal
Copy link
Member

pablogsal commented Jun 8, 2021

@erlend-aasland One important thing: please don't push commits after approval without requesting another review because that's a potential security concern as if I land because I see my approval I may include unreviewed commits.

@pablogsal pablogsal merged commit 1c02655 into python:main Jun 8, 2021
@erlend-aasland
Copy link
Contributor Author

One important thing: please don't push commits after approval without requesting another review because that's a potential security concern as if I land because I see my approval I may include unreviewed commits.

Of course; thanks!

@erlend-aasland erlend-aasland deleted the sqlite-refactor-stmt-create branch June 9, 2021 21:28
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

4 participants