Uh oh!
There was an error while loading. Please reload this page.
gh-88239: Use sqlite3_stmt_busy() to determine if statements are in use - #25984
Conversation
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.
Of course.
|
This reverts commit 5b1fca2.
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