diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-16 02:40:21 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-16 12:46:35 +0000 |
| commit | b5d80b609d6f1b0922ed51d6182ff137f1b3ba3e (patch) | |
| tree | 2b1b8c521213c130a1b5a35f7a43ec8b584ac894 /doc/src | |
| parent | 20c9c1745728a5463746ba89ff0271bc2de4c668 (diff) | |
| download | psycopg2-b5d80b609d6f1b0922ed51d6182ff137f1b3ba3e.tar.gz | |
Revert pre-2.7b1 behaviour of silent rollback on conn.set_isolation_level()
Legacy method is legacy.
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/connection.rst | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/doc/src/connection.rst b/doc/src/connection.rst index c2a0c5c..d554ce6 100644 --- a/doc/src/connection.rst +++ b/doc/src/connection.rst @@ -480,8 +480,9 @@ The ``connection`` class .. note:: - From version 2.4.2, `set_session()` and `autocommit` offer - finer control on the transaction characteristics. + This is a legacy method mixing `~conn.isolation_level` and + `~conn.autocommit`. Using the respective properties is a better + option. Set the `transaction isolation level`_ for the current session. The level defines the different phenomena that can happen in the @@ -501,12 +502,6 @@ The ``connection`` class See also :ref:`transactions-control`. - .. versionchanged:: 2.7 - - the function must be called outside a transaction; previously it - would have executed an implicit :sql:`ROLLBACK`; it will now raise - an exception. - .. index:: pair: Client; Encoding |
