summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-02-16 19:39:03 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-16 19:39:03 (GMT)
commitb3890226b33f86d485dccac309d442b15e766270 (patch)
tree4d4afc7e5b53d7c76fe420dc6974d0eb538c64a8 /Doc/includes
parentf670ca5e70962cf7fbc5b1c5758fb70d9c2e0e00 (diff)
downloadcpython-b3890226b33f86d485dccac309d442b15e766270.zip
cpython-b3890226b33f86d485dccac309d442b15e766270.tar.gz
cpython-b3890226b33f86d485dccac309d442b15e766270.tar.bz2
sqlite3: Fix documentation errors concerning Cursor.rowcount
Closes #13995.
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/sqlite3/shortcut_methods.py3
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")