mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
sqlite3: Fix documentation errors concerning Cursor.rowcount
Closes #13995.
This commit is contained in:
parent
f670ca5e70
commit
b3890226b3
3 changed files with 8 additions and 10 deletions
|
@ -17,5 +17,4 @@ con.executemany("insert into person(firstname, lastname) values (?, ?)", persons
|
|||
for row in con.execute("select firstname, lastname from person"):
|
||||
print(row)
|
||||
|
||||
# Using a dummy WHERE clause to not let SQLite take the shortcut table deletes.
|
||||
print("I just deleted", con.execute("delete from person where 1=1").rowcount, "rows")
|
||||
print("I just deleted", con.execute("delete from person").rowcount, "rows")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue