-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
gh-79579: Update sqlite3.Cursor.rowcount
for all data-modifying queries
#93532
gh-79579: Update sqlite3.Cursor.rowcount
for all data-modifying queries
#93532
Conversation
@animalize, would you like to review this? |
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit e82adb8 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
cc. @zzzeek |
Before this change, this code prints import sqlite3
cursor = sqlite3.connect(":memory:", isolation_level=None).cursor()
cursor.execute("""CREATE TABLE foo (id INTEGER)""")
values = ((1,), (2,), (3,))
cursor.executemany("""INSERT INTO foo (id) VALUES (?)""", values)
cursor.execute("vacuum")
print(cursor.rowcount) |
It seems wrong is a bit vague. Would you mind to elaborate? Actually, this will be fixed by #93520 (which currently also encompasses this change), so it does not matter. IMO, trying to parse comments is fragile approach, and I would not recommend such a solution. |
In
IMHO, using |
Yes, but IMO this is the most reliable way. |
I don't think that is a valid comparison. We're not talking about transaction control here; just setting |
On hold till #93421 is resolved. |
Closing in favour of #93623 |
Resolves #79579