]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
update oracledb async dialect for oracledb __aenter__()
authorAVRC26 <AVRC26@gmail.com>
Tue, 7 Jul 2026 19:01:23 +0000 (15:01 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Jul 2026 01:13:39 +0000 (21:13 -0400)
commit0cc286b5cabc147ced35b63587632ccbcbb17fd3
tree9e2baefbaa201e56cfaad229ef072d12d62f7f7c
parent4009b58467c0f76d318a336894d754adb9ff4f74
update oracledb async dialect for oracledb __aenter__()

Updated the oracledb async dialect where the async cursor adapter invoked
``__enter__()`` rather than ``__aenter__()`` on the underlying cursor.
While these are equivalent in oracledb itself, the correct async form is
now used for correctness. As ``AsyncCursor.__aenter__()`` was added in
oracledb 2.0.1, the minimum supported oracledb version is now 2.0.1,
declared via the ``oracle-oracledb`` extra.  Pull request courtesy AVRC26.

Fixes: #13420
Closes: #13421
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13421
Pull-request-sha: 20582e2eaf1cdf9cd8af94ecf216f5d5d9fb3d62

Change-Id: I04f0e6cf3f753a1bfc664c4f10c290093526b4cb
doc/build/changelog/unreleased_21/13420.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/oracle/oracledb.py
pyproject.toml
test/dialect/oracle/test_dialect.py