Message153136
| 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:17 | mattheww | set | recipients:
+ mattheww, docs@python |
| 2012年02月11日 20:16:17 | mattheww | set | messageid: <1328991377.3.0.315009784222.issue13995@psf.upfronthosting.co.za> |
| 2012年02月11日 20:16:14 | mattheww | link | issue13995 messages |
| 2012年02月11日 20:16:13 | mattheww | create |
|