]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96810: Clarify for which statements sqlite3 implicitly opens transactions (#96832)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Thu, 15 Sep 2022 21:11:52 +0000 (23:11 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Sep 2022 21:11:52 +0000 (23:11 +0200)
Doc/library/sqlite3.rst

index a99c0b9216b988723996a8e273b7778bd14a2115..e2774a502403e7fa5156dc7e46e000b30e15866a 100644 (file)
@@ -2274,7 +2274,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`_ —