Visitar URL original
bpo-44329: Refactor sqlite3 statement creation by erlend-aasland · Pull Request #26566 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20210610080327/https://github.com/python/cpython/pull/26566
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.
Modules/_sqlite/statement.c Outdated Show resolved Hide resolved
@pablogsal
Copy link
Member

@pablogsal 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
11 checks passed
11 checks passed
@github-actions
Check for source changes
Details
@github-actions
Check if generated files are up to date
Details
@github-actions
Windows (x86)
Details
@github-actions
Windows (x64)
Details
@github-actions
macOS
Details
@github-actions
Ubuntu
Details
@github-actions
Ubuntu SSL tests with OpenSSL
Details
Azure Pipelines PR #20210607.32 succeeded
Details
@travis-ci
Travis CI - Pull Request Build Passed
Details
@bedevere-bot
bedevere/issue-number Issue number 44329 found
Details
@bedevere-bot
bedevere/news "skip news" label found
@erlend-aasland
Copy link
Contributor Author

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

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 erlend-aasland:sqlite-refactor-stmt-create branch Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants