Fixed note on rollback on close in the doc

It's not like we call "rollback()": we close the connection and the
backend rolls back on its own. It may have differences, e.g. conn poolers.
This commit is contained in:
Daniele Varrazzo 2012-08-15 12:28:13 +01:00
parent 9ae4bbd195
commit 64e3e1199e

View File

@ -521,7 +521,7 @@ the `~connection.commit()` or `~connection.rollback()` method. Committed
changes are immediately made persistent into the database. Closing the changes are immediately made persistent into the database. Closing the
connection using the `~connection.close()` method or destroying the connection using the `~connection.close()` method or destroying the
connection object (using `!del` or letting it fall out of scope) connection object (using `!del` or letting it fall out of scope)
will result in an implicit `!rollback()` call. will result in an implicit rollback.
It is possible to set the connection in *autocommit* mode: this way all the It is possible to set the connection in *autocommit* mode: this way all the
commands executed will be immediately committed and no rollback is possible. A commands executed will be immediately committed and no rollback is possible. A