8000 gh-96810: Clarify for which statements sqlite3 implicitly opens trans… · python/cpython@9ab9e82 · GitHub
[go: up one dir, main page]

Skip to content
65EC

Commit 9ab9e82

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 <erlend.aasland@protonmail.com>
1 parent b31b1b1 commit 9ab9e82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/sqlite3.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,8 @@ If the connection attribute :attr:`~Connection.isolation_level`
22362236
is not ``None``,
22372237
new transactions are implicitly opened before
22382238
:meth:`~Cursor.execute` and :meth:`~Cursor.executemany` executes
2239-
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements.
2239+
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements;
2240+
for other statements, no implicit transaction handling is performed.
22402241
Use the :meth:`~Connection.commit` and :meth:`~Connection.rollback` methods
22412242
to respectively commit and roll back pending transactions.
22422243
You can choose the underlying `SQLite transaction behaviour`_ —

0 commit comments

Comments
 (0)
0