diff options
author | Petri Lehtinen <petri@digip.org> | 2012-02-16 19:43:41 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-02-16 19:44:26 (GMT) |
commit | 17f1be63681c921a82f2dd9dd44e0305e46b4733 (patch) | |
tree | 7ee181d024775c87ff9ef37e2bc25e0f882e2934 /Doc/library/sqlite3.rst | |
parent | 8e3926a810a5d849573a96b33308b9e2a1014ac4 (diff) | |
parent | b3890226b33f86d485dccac309d442b15e766270 (diff) | |
download | cpython-17f1be63681c921a82f2dd9dd44e0305e46b4733.zip cpython-17f1be63681c921a82f2dd9dd44e0305e46b4733.tar.gz cpython-17f1be63681c921a82f2dd9dd44e0305e46b4733.tar.bz2 |
Merge branch '3.2'
Closes #13995.
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r-- | Doc/library/sqlite3.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 2eb4614..edd2a00 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -555,18 +555,17 @@ Cursor Objects attribute, the database engine's own support for the determination of "rows affected"/"rows selected" is quirky. - For ``DELETE`` statements, SQLite reports :attr:`rowcount` as 0 if you make a - ``DELETE FROM table`` without any condition. - For :meth:`executemany` statements, the number of modifications are summed up into :attr:`rowcount`. As required by the Python DB API Spec, the :attr:`rowcount` attribute "is -1 in case no ``executeXX()`` has been performed on the cursor or the rowcount of the - last operation is not determinable by the interface". + last operation is not determinable by the interface". This includes ``SELECT`` + statements because we cannot determine the number of rows a query produced + until all rows were fetched. - This includes ``SELECT`` statements because we cannot determine the number of - rows a query produced until all rows were fetched. + With SQLite versions before 3.6.5, :attr:`rowcount` is set to 0 if + you make a ``DELETE FROM table`` without any condition. .. attribute:: Cursor.lastrowid |