]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Gracefully degrade on v$transaction not readable
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Dec 2020 14:28:06 +0000 (09:28 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Dec 2020 15:48:30 +0000 (10:48 -0500)
commit566f1b520e05659ba4d4928c740a9aa1b0fed614
tree9b87db804c34627badb6a58f416cfe92e18cea54
parent35b04a5508e06a99941cf6eca7de545554c9d6ca
Gracefully degrade on v$transaction not readable

Fixed regression which occured due to [ticket:5755] which implemented
isolation level support for Oracle.   It has been reported that many Oracle
accounts don't actually have permission to query the ``v$transaction``
view so this feature has been altered to gracefully fallback when it fails
upon database connect, where the dialect will assume "READ COMMITTED" is
the default isolation level as was the case prior to SQLAlchemy 1.3.21.
However, explicit use of the :meth:`_engine.Connection.get_isolation_level`
method must now necessarily raise an exception, as Oracle databases with
this restriction explicitly disallow the user from reading the current
isolation level.

Fixes: #5784
Change-Id: Iefc82928744f3c944c18ae8000eb3c9e52e523bc
doc/build/changelog/unreleased_13/5784.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/testing/suite/test_dialect.py
test/dialect/oracle/test_dialect.py