summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJia Junjie <62194633+jiajunjie@users.noreply.github.com>2022-10-05 08:47:54 (GMT)
committerGitHub <noreply@github.com>2022-10-05 08:47:54 (GMT)
commit4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf (patch)
treed2eb16fd61a3c44772e8e5d5b78c7f8730703604
parentc529b451226bc704ce648cbe7e0b8cb48bcf5e1c (diff)
downloadcpython-4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf.zip
cpython-4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf.tar.gz
cpython-4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf.tar.bz2
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (#97662)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
-rw-r--r--Doc/library/sqlite3.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index e2774a5..26a0858 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -1425,7 +1425,9 @@ Cursor objects
.. method:: fetchone()
- Return the next row of a query result set as a :class:`tuple`.
+ If :attr:`~Connection.row_factory` is ``None``,
+ return the next row query result set as a :class:`tuple`.
+ Else, pass it to the row factory and return its result.
Return ``None`` if no more data is available.