mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
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:
parent
9ae4bbd195
commit
64e3e1199e
|
@ -521,7 +521,7 @@ the `~connection.commit()` or `~connection.rollback()` method. Committed
|
|||
changes are immediately made persistent into the database. Closing the
|
||||
connection using the `~connection.close()` method or destroying the
|
||||
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
|
||||
commands executed will be immediately committed and no rollback is possible. A
|
||||
|
|
Loading…
Reference in New Issue
Block a user