]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96810: Clarify for which statements sqlite3 implicitly opens transactions (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 15 Sep 2022 21:21:08 +0000 (14:21 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:06:12 +0000 (20:06 +0100)
(cherry picked from commit 16c33a9676e2f3ef330d09f2ab515c56636fa09f)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Doc/library/sqlite3.rst

index 110d262ee600dd9c5239d5dac2bfc5d6658e9a5b..99a413fb13ae9b3fab45a49655b1f5499f8d9c9d 100644 (file)
@@ -2239,7 +2239,8 @@ If the connection attribute :attr:`~Connection.isolation_level`
 is not ``None``,
 new transactions are implicitly opened before
 :meth:`~Cursor.execute` and :meth:`~Cursor.executemany` executes
-``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements.
+``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements;
+for other statements, no implicit transaction handling is performed.
 Use the :meth:`~Connection.commit` and :meth:`~Connection.rollback` methods
 to respectively commit and roll back pending transactions.
 You can choose the underlying `SQLite transaction behaviour`_ —