summaryrefslogtreecommitdiffstats
path: root/Doc/includes/sqlite3
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-02-16 19:42:34 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-16 19:42:34 (GMT)
commit002b202009e5d887f6ff075e428319849cfd865b (patch)
tree04a03426c6315d7f55fa448672e62e8b53797b57 /Doc/includes/sqlite3
parent14dc510395aa2469f0d86664202681735d2b63a0 (diff)
downloadcpython-002b202009e5d887f6ff075e428319849cfd865b.zip
cpython-002b202009e5d887f6ff075e428319849cfd865b.tar.gz
cpython-002b202009e5d887f6ff075e428319849cfd865b.tar.bz2
Fix errors in sqlite3's Cursor.rowcount documentation
Closes #13995.
Diffstat (limited to 'Doc/includes/sqlite3')
-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 72ed4b3..e128a3b 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"