]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure .engine is part of Connectable interface, implement as descriptor
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Jul 2019 14:42:20 +0000 (10:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Jul 2019 15:13:08 +0000 (11:13 -0400)
commit375c91b591b3242a37f457da4c8f5fcdb8d42580
tree6fdddf272022c20520f0a0985c44add36a99eed6
parent5edd50c0c820cb239813f7c72aaede40767f9891
Ensure .engine is part of Connectable interface, implement as descriptor

Fixed bug where using reflection function such as :meth:`.MetaData.reflect`
with an :class:`.Engine` object that had execution options applied to it
would fail, as the resulting :class:`.OptionEngine` proxy object failed to
include a ``.engine`` attribute used within the reflection routines.

Fixes: #4754
Change-Id: I6c342af5c6db6fe362b9d25f3f26d6859f62f87a
(cherry picked from commit 3238d953b42f67761dc3019bd27f2960ae2e525f)
doc/build/changelog/unreleased_13/4754.rst [new file with mode: 0644]
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/interfaces.py
test/engine/test_execute.py
test/engine/test_reflection.py