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

Skip to content

Commit 746dad4

Browse files
miss-islingtonerlend-aasland
authored andcommitted
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 a955ccc commit 746dad4

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
@@ -2239,7 +2239,8 @@ If the connection attribute :attr:`~Connection.isolation_level`
22392239
is not ``None``,
22402240
new transactions are implicitly opened before
22412241
:meth:`~Cursor.execute` and :meth:`~Cursor.executemany` executes
2242-
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements.
2242+
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements;
2243+
for other statements, no implicit transaction handling is performed.
22432244
Use the :meth:`~Connection.commit` and :meth:`~Connection.rollback` methods
22442245
to respectively commit and roll back pending transactions.
22452246
You can choose the underlying `SQLite transaction behaviour`_ —

0 commit comments

Comments
 (0)
0