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-93421: Fix sqlite3 cursor .rowcount for UPDATE ... RETURNING queries#93520
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 Jun 5, 2022 • 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.
Does not work bca. executemany, but it solves the repro
bedevere-bot commented Jun 5, 2022
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 5819902 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
bedevere-bot commented Jun 5, 2022
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 5165a3a 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
bedevere-bot commented Jun 5, 2022
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 1da6390 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
erlend-aasland commented Jun 6, 2022
FYI, the failing buildbot are also failing on |
ghost commented Jun 6, 2022
Haven't checked this method for problems. total_changes doc:
|
erlend-aasland commented Jun 6, 2022
Please do; I appreciate your review.
Yes, I will make sure the 64-bit version is used, when available. Thanks for the heads-up! |
erlend-aasland commented Jun 6, 2022
FTR, I will revert the DML check change in this PR; that is cleaner. |
ghost commented Jun 7, 2022 • edited by ghost
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by ghost
Uh oh!
There was an error while loading. Please reload this page.
Just found If change one row per second, it will overflow after 68 years: >>> (2**31-1)/3600/24/36568.09625973490614Not afraid of you laughing, I hope a program can run 1000 years (or forever) without errors, in theory we can achieve this goal. |
erlend-aasland commented Jun 7, 2022
Yes, both of the 64-bit changes APIs were added in 3.37.0.
Absolutely. But I also like to keep in mind that perfect is the enemy of good. IMO, a some of the sqlite3 issues have fallen to this; the proposed solution is not perfect, so we're stuck with API pains and bugs. A pragmatic view may, in some cases, be beneficial. For the record: for now, I think my alternative PR is the better solution for this issue. |
erlend-aasland commented Jun 7, 2022
Closing in favour of gh-93526 |
Resolves#93421