sqlite3: Fix documentation errors concerning Cursor.rowcount

Closes #13995.
This commit is contained in:
Petri Lehtinen 2012-02-16 21:39:03 +02:00
parent f670ca5e70
commit b3890226b3
3 changed files with 8 additions and 10 deletions

View file

@ -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")