GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — gh-79579: Update `sqlite3.Cursor.rowcount` for all data-modifying queries by erlend-aasland · Pull Request #93532 · python/cpython Conversation
|
|
@animalize, would you like to review this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
cc. @zzzeek |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
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) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
In
IMHO, using |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, but IMO this is the most reliable way. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I don't think that is a valid comparison. We're not talking about transaction control here; just setting |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
On hold till #93421 is resolved. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing in favour of #93623 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
SQLite incorrect row count for UPDATE
There was an error while loading. Please reload this page.