Skip to content

Commit ec08534

Browse files
gh-96810: Clarify for which statements sqlite3 implicitly opens transactions (GH-96832)
(cherry picked from commit 16c33a9) Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 7528e2c commit ec08534

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/sqlite3.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,8 @@ If the connection attribute :attr:`~Connection.isolation_level`
18501850
is not ``None``,
18511851
new transactions are implicitly opened before
18521852
:meth:`~Cursor.execute` and :meth:`~Cursor.executemany` executes
1853-
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements.
1853+
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements;
1854+
for other statements, no implicit transaction handling is performed.
18541855
Use the :meth:`~Connection.commit` and :meth:`~Connection.rollback` methods
18551856
to respectively commit and roll back pending transactions.
18561857
You can choose the underlying `SQLite transaction behaviour`_ —

0 commit comments

Comments
 (0)