]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix: pass dialect-specific kwargs to MetaData.reflect
authorLukáš Kožušník <lukinkozusnik@seznam.cz>
Fri, 26 Sep 2025 22:37:50 +0000 (18:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 30 Sep 2025 17:27:20 +0000 (13:27 -0400)
commit8a77dc640bb35902e4bf9ba47364f182e9ee6c71
treee933f8e69da11f6e378bf72dcc133e65588846cd
parentce51ba50b22da91216311c1c0633568d30dfff5a
fix: pass dialect-specific kwargs to MetaData.reflect

Fixed issue where :meth:`_schema.MetaData.reflect` did not forward
dialect-specific keyword arguments to the :class:`_engine.Inspector`
methods, causing options like ``oracle_resolve_synonyms`` to be ignored
during reflection. The method now ensures that all extra kwargs passed to
:meth:`_schema.MetaData.reflect` are forwarded to
:meth:`_engine.Inspector.get_table_names` and related reflection methods.
Pull request courtesy Lukáš Kožušník.

Fixes: #12884
Closes: #12885
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12885
Pull-request-sha: 9436812223600a2459461744fe20648639afc07d

Change-Id: Idb1ca0bc624df8e175cbfa979a8f31e62de185fe
doc/build/changelog/unreleased_20/12884.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/engine/test_reflection.py