mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Bug #1573854: fix docs for sqlite3 cursor rowcount attr.
This commit is contained in:
parent
8d9e84554e
commit
891f1d339b
1 changed files with 3 additions and 3 deletions
|
@ -440,9 +440,6 @@ A :class:`Cursor` instance has the following attributes and methods:
|
|||
attribute, the database engine's own support for the determination of "rows
|
||||
affected"/"rows selected" is quirky.
|
||||
|
||||
For ``SELECT`` statements, :attr:`rowcount` is always None because we cannot
|
||||
determine the number of rows a query produced until all rows were fetched.
|
||||
|
||||
For ``DELETE`` statements, SQLite reports :attr:`rowcount` as 0 if you make a
|
||||
``DELETE FROM table`` without any condition.
|
||||
|
||||
|
@ -453,6 +450,9 @@ A :class:`Cursor` instance has the following attributes and methods:
|
|||
case no executeXX() has been performed on the cursor or the rowcount of the 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.
|
||||
|
||||
|
||||
.. _sqlite3-types:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue