homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mattheww
Recipients docs@python, mattheww
Date 2012年02月11日.20:16:13
SpamBayes Score 7.227543e-07
Marked as misclassified No
Message-id <1328991377.3.0.315009784222.issue13995@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for the sqlite3 module contains the following statement, under 'Cursor.rowcount':
 For DELETE statements, SQLite reports rowcount as 0 if you make a DELETE FROM table without any condition.
This doesn't happen for me (with sqlite 3.7.9): rowcount returns the correct value in this case.
According to http://www.sqlite.org/lang_delete.html#truncateopt , this was a bug that was fixed in SQLite 3.6.5 (in 2008).
So I think the Python documentation should either omit this paragraph, or else explain that it only applies to older versions of SQLite.
Also, the first example under 'Using shortcut methods' has code to work around this bug, which should perhaps be removed.
History
Date User Action Args
2012年02月11日 20:16:17matthewwsetrecipients: + mattheww, docs@python
2012年02月11日 20:16:17matthewwsetmessageid: <1328991377.3.0.315009784222.issue13995@psf.upfronthosting.co.za>
2012年02月11日 20:16:14matthewwlinkissue13995 messages
2012年02月11日 20:16:13matthewwcreate

AltStyle によって変換されたページ (->オリジナル) /