Fixed incorrect and outdated connection.commit() doc

This commit is contained in:
Daniele Varrazzo 2012-07-27 17:44:28 +01:00
parent ee7890d700
commit e369fb5f0d

View File

@ -61,9 +61,15 @@ The ``connection`` class
.. method:: commit()
Commit any pending transaction to the database. Psycopg can be set to
perform automatic commits at each operation, see
`~connection.set_isolation_level()`.
Commit any pending transaction to the database.
By default, Psycopg opens a transaction before executing the first
command: if `!commit()` is not called, the effect of any data
manipulation will be lost.
The connection can be also set in "autocommit" mode: no transaction is
automatically open, commands have immediate effect. See
:ref:`transactions-control` for details.
.. index::