diff options
author | Petri Lehtinen <petri@digip.org> | 2012-02-16 19:39:03 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-02-16 19:39:03 (GMT) |
commit | b3890226b33f86d485dccac309d442b15e766270 (patch) | |
tree | 4d4afc7e5b53d7c76fe420dc6974d0eb538c64a8 /Doc/includes/sqlite3/shortcut_methods.py | |
parent | f670ca5e70962cf7fbc5b1c5758fb70d9c2e0e00 (diff) | |
download | cpython-b3890226b33f86d485dccac309d442b15e766270.zip cpython-b3890226b33f86d485dccac309d442b15e766270.tar.gz cpython-b3890226b33f86d485dccac309d442b15e766270.tar.bz2 |
sqlite3: Fix documentation errors concerning Cursor.rowcount
Closes #13995.
Diffstat (limited to 'Doc/includes/sqlite3/shortcut_methods.py')
-rw-r--r-- | Doc/includes/sqlite3/shortcut_methods.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/includes/sqlite3/shortcut_methods.py b/Doc/includes/sqlite3/shortcut_methods.py index 596d87c..71600d4 100644 --- a/Doc/includes/sqlite3/shortcut_methods.py +++ b/Doc/includes/sqlite3/shortcut_methods.py @@ -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") |