@@ -637,24 +637,24 @@ Connection objects
637
637
Commit any open transaction to the database.
638
638
If :attr: `autocommit ` is ``True ``, or there is no open transaction,
639
639
this method does nothing.
640
- If :attr: `!autocommit ` is ``False ``, a new transaction is implicitly
641
- opened if an open transaction was committed by this method .
640
+ If :attr: `!autocommit ` is ``False ``, this method implicitly opens
641
+ a new transaction after committing an open transaction .
642
642
643
643
.. method :: rollback()
644
644
645
645
Roll back to the start of any open transaction.
646
646
If :attr: `autocommit ` is ``True ``, or there is no open transaction,
647
647
this method does nothing.
648
- If :attr: `!autocommit ` is ``False ``, a new transaction is implicitly
649
- opened if an open transaction was rolled back by this method .
648
+ If :attr: `!autocommit ` is ``False ``, this method implicitly opens
649
+ a new transaction after committing .
650
650
651
651
.. method :: close()
652
652
653
653
Close the database connection.
654
- If :attr: `autocommit ` is ``False ``,
655
- any open transaction is implicitly rolled back .
654
+ If :attr: `
5E2A
autocommit ` is ``False ``, this method implicitly rolls back
655
+ any open transaction before closing .
656
656
If :attr: `!autocommit ` is ``True `` or :data: `LEGACY_TRANSACTION_CONTROL `,
657
- no implicit transaction control is executed .
657
+ this method does not execute any implicit transaction control.
658
658
Make sure to :meth: `commit ` before closing
659
659
to avoid losing pending changes.
660
660
0 commit comments