]> 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 15:26:45 +0000 (11:26 -0400)
commit44a61e2e5671eca0671a0f1d7180f0bb036d9340
tree0aebf6e891eca4379daa516ca2cf026b595156d8
parent7cd36dabf67c58747c76602c92f04ff8d3eac5f3
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
(cherry picked from commit 61c21f09c7f5bcf7acea0c1e65e07466da59a48c)
doc/build/changelog/unreleased_20/12884.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/engine/test_reflection.py