gh-93421: Fix sqlite3 cursor `.rowcount` for UPDATE ... RETURNING queries by erlend-aasland · Pull Request #93520 · python/cpython
Just found
sqlite3_total_changes64()is a very new function, added in 3.37.0 (2021-11-27)
Yes, both of the 64-bit changes APIs were added in 3.37.0.
Not afraid of you laughing, I hope a program can run 1000 years (or forever) without errors, in theory we can achieve this goal.
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.