Skip to content

Commit 126af44

Browse files
committed
Normalize ‘open transaction’
1 parent 9a018b7 commit 126af44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/sqlite3.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,15 +634,15 @@ Connection objects
634634

635635
.. method:: commit()
636636

637-
Commit any pending transaction to the database.
637+
Commit any open transaction to the database.
638638
If :attr:`autocommit` is ``True``, or there is no open transaction,
639639
this method does nothing.
640640
If :attr:`!autocommit` is ``False``, this method implicitly opens
641641
a new transaction after committing.
642642

643643
.. method:: rollback()
644644

645-
Roll back to the start of any pending transaction.
645+
Roll back to the start of any open transaction.
646646
If :attr:`autocommit` is ``True``, or there is no open transaction,
647647
this method does nothing.
648648
If :attr:`!autocommit` is ``False``, this method implicitly opens
@@ -1272,7 +1272,7 @@ Connection objects
12721272
This is currently the default value of :attr:`!autocommit`.
12731273

12741274
Changing :attr:`!autocommit` to ``False`` will open a new transaction,
1275-
and changing it to ``True`` will commit any pending transaction.
1275+
and changing it to ``True`` will commit any open transaction.
12761276

12771277
See :ref:`sqlite3-transaction-control-autocommit` for more details.
12781278

@@ -1473,7 +1473,7 @@ Cursor objects
14731473
Execute the SQL statements in *sql_script*.
14741474
If the :attr:`~Connection.autocommit` is
14751475
:data:`LEGACY_TRANSACTION_CONTROL`
1476-
and there is a pending transaction,
1476+
and there is an open transaction,
14771477
an implicit ``COMMIT`` statement is executed first.
14781478
No other implicit transaction control is performed;
14791479
any transaction control must be added to *sql_script*.

0 commit comments

Comments
 (0)