◐ Shell
clean mode source ↗

[3.11] gh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs (#104287) by erlend-aasland · Pull Request #104381 · python/cpython

Expand Up @@ -1516,7 +1516,10 @@ Cursor objects ``INSERT``, ``UPDATE``, ``DELETE``, and ``REPLACE`` statements; is ``-1`` for other statements, including :abbr:`CTE (Common Table Expression)` queries. It is only updated by the :meth:`execute` and :meth:`executemany` methods. It is only updated by the :meth:`execute` and :meth:`executemany` methods, after the statement has run to completion. This means that any resulting rows must be fetched in order for :attr:`!rowcount` to be updated.
.. attribute:: row_factory
Expand Down