Skip to content

Commit

Permalink
gh-96810: Clarify for which statements sqlite3 implicitly opens trans…
Browse files Browse the repository at this point in the history
…actions (GH-96832)

(cherry picked from commit 16c33a9)

Co-authored-by: Erlend E. Aasland <[email protected]>
miss-islington and erlend-aasland authored Sep 15, 2022

Verified

This commit was signed with the committer’s verified signature.
ayumi ayumi  yu
1 parent b31b1b1 commit 9ab9e82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
@@ -2236,7 +2236,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`_ —

0 comments on commit 9ab9e82

Please sign in to comment.