Skip to content

Commit 16c33a9

Browse files
gh-96810: Clarify for which statements sqlite3 implicitly opens transactions (#96832)
1 parent 303bd88 commit 16c33a9

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
@@ -2274,7 +2274,8 @@ If the connection attribute :attr:`~Connection.isolation_level`
22742274
is not ``None``,
22752275
new transactions are implicitly opened before
22762276
:meth:`~Cursor.execute` and :meth:`~Cursor.executemany` executes
2277-
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements.
2277+
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements;
2278+
for other statements, no implicit transaction handling is performed.
22782279
Use the :meth:`~Connection.commit` and :meth:`~Connection.rollback` methods
22792280
to respectively commit and roll back pending transactions.
22802281
You can choose the underlying `SQLite transaction behaviour`_ —

0 commit comments

Comments
 (0)