summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-12-20 00:02:25 (GMT)
committerGitHub <noreply@github.com>2020-12-20 00:02:25 (GMT)
commita34ab8188e0352e4066da4f79ed3cc24d1b61a63 (patch)
tree3dd28c67ea269ba385c0642d7ed7425475332b38
parent597ebc8cf604de49eabbc7b83be2debd005d7819 (diff)
downloadcpython-a34ab8188e0352e4066da4f79ed3cc24d1b61a63.zip
cpython-a34ab8188e0352e4066da4f79ed3cc24d1b61a63.tar.gz
cpython-a34ab8188e0352e4066da4f79ed3cc24d1b61a63.tar.bz2
bpo-41724: Explain when the conversion is not possible with detect_types enabled (GH-23855) (GH-23862)
* Explain when the conversion is not possible with detect_types enabled (cherry picked from commit 09a36cdfb7c22f44df45b44e5561776206bcedfb) Co-authored-by: sblondon <sblondon@users.noreply.github.com> Co-authored-by: sblondon <sblondon@users.noreply.github.com>
-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 ccb8227..b97414e 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -197,7 +197,9 @@ Module functions and constants
*detect_types* defaults to 0 (i. e. off, no type detection), you can set it to
any combination of :const:`PARSE_DECLTYPES` and :const:`PARSE_COLNAMES` to turn
- type detection on.
+ type detection on. Due to SQLite behaviour, types can't be detected for generated
+ fields (for example ``max(data)``), even when *detect_types* parameter is set. In
+ such case, the returned type is :class:`str`.
By default, *check_same_thread* is :const:`True` and only the creating thread may
use the connection. If set :const:`False`, the returned connection may be shared