Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-88239: Use sqlite3_stmt_busy() to determine if statements are in use#25984
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
erlend-aasland commented May 8, 2021 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented May 8, 2021
No user-visible change, so I'm adding the skip news label. Marking as draft until I've verified all the exit paths in _pysqlite_query_execute(). |
erlend-aasland commented May 8, 2021
cc. @corona10 |
erlend-aasland commented Jun 4, 2021
I've left the exit paths as they are to avoid changing current behaviour. We can rework |
erlend-aasland commented Jun 4, 2021
@pablogsal, are you comfortable with reviewing this, wrt. SQLite API? The change is very straight-forwared, so it should be easy to review. Here's a link to the relevant API: https://sqlite.org/c3ref/stmt_busy.html |
pablogsal commented Jun 4, 2021
Do we have tests covering this behaviour from before? |
erlend-aasland commented Jun 4, 2021
The if statement in query execute lacks test coverage. I've got one lying around from the sqlite3 coverage issue. I'll add it to the PR once I'm back at my computer. Thanks! |
pablogsal commented Jun 4, 2021
I would like to ame sure that we have coverage for this to ensure that we don't introduce regressions (although we shouldn't if I read this PR correctly). |
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented Jun 4, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Of course.
|
This reverts commit 5b1fca2.
erlend-aasland commented Aug 15, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Instead of resetting a statment on every "exit" path, only reset when needed: 1. reset before first sqlite3_step() 2. on cursor close, reset the statement attached to it
sqlite3 statement handling; only reset statements when neededsqlite3 statement handling; only reset statements when needederlend-aasland commented Oct 6, 2021
#27844 was reverted, so I'm putting this on hold again. |
bedevere-bot commented Jun 23, 2022
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 37bf9ef 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
erlend-aasland commented Jun 23, 2022
Buildbots are happy. I'll be merging this to |
Fixes#88239