summaryrefslogtreecommitdiffstats
path: root/Doc/library/sqlite3.rst
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-05-19 07:05:48 (GMT)
committerGitHub <noreply@github.com>2021-05-19 07:05:48 (GMT)
commit901443757333a66ff2b5c85eba30dc1c48eac321 (patch)
treef1d0289d5f7bd37a9d1dd3d2189350789516f912 /Doc/library/sqlite3.rst
parent4fdcc39f711e1b586a94e2c5088fdd7e78fd9f58 (diff)
downloadcpython-901443757333a66ff2b5c85eba30dc1c48eac321.zip
cpython-901443757333a66ff2b5c85eba30dc1c48eac321.tar.gz
cpython-901443757333a66ff2b5c85eba30dc1c48eac321.tar.bz2
bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r--Doc/library/sqlite3.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index d0f28db..f9e4c8a 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -648,7 +648,8 @@ Cursor Objects
This is a nonstandard convenience method for executing multiple SQL statements
at once. It issues a ``COMMIT`` statement first, then executes the SQL script it
- gets as a parameter.
+ gets as a parameter. This method disregards :attr:`isolation_level`; any
+ transation control must be added to *sql_script*.
*sql_script* can be an instance of :class:`str`.
@@ -1048,6 +1049,9 @@ setting :attr:`isolation_level` to ``None``. This will leave the underlying
control the transaction state by explicitly issuing ``BEGIN``, ``ROLLBACK``,
``SAVEPOINT``, and ``RELEASE`` statements in your code.
+Note that :meth:`~Cursor.executescript` disregards
+:attr:`isolation_level`; any transaction control must be added explicitly.
+
.. versionchanged:: 3.6
:mod:`sqlite3` used to implicitly commit an open transaction before DDL
statements. This is no longer the case.