]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- A warning is emitted if the ``isolation_level`` parameter is used
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Feb 2015 22:07:15 +0000 (17:07 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Feb 2015 23:35:01 +0000 (18:35 -0500)
commit9cbe235810b7c0c24d2556b4bb581b0207812e2d
treea842ee456f9d6ce69db3676d19e8428df35acb05
parent9ea19b374630e6ae14cb144942007aa0f8686583
- A warning is emitted if the ``isolation_level`` parameter is used
with :meth:`.Connection.execution_options` when a :class:`.Transaction`
is in play; DBAPIs and/or SQLAlchemy dialects such as psycopg2,
MySQLdb may implicitly rollback or commit the transaction, or
not change the setting til next transaction, so this is never safe.
- Added new parameter :paramref:`.Session.connection.execution_options`
which may be used to set up execution options on a :class:`.Connection`
when it is first checked out, before the transaction has begun.
This is used to set up options such as isolation level on the
connection before the transaction starts.
- added new documentation section
detailing best practices for setting transaction isolation with
sessions.
fixes #3296
doc/build/changelog/changelog_09.rst
doc/build/orm/session_transaction.rst
lib/sqlalchemy/engine/__init__.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/orm/session.py
test/engine/test_transaction.py
test/orm/test_bind.py
test/orm/test_transaction.py