]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
reset key/name when TableValuedColumn is adapted
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 16 Jul 2021 14:14:56 +0000 (10:14 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 16 Jul 2021 14:14:56 +0000 (10:14 -0400)
commitb932b04b65f0851cbd63e89ee6067fd0a8d30a1b
tree6ca68294288256c6040628e0a4eb734dfafdd8f3
parent03794d40f31cd1c8501c528eda6c351559c1f739
reset key/name when TableValuedColumn is adapted

Fixed issue in new :meth:`_schema.Table.table_valued` method where the
resulting :class:`_sql.TableValuedColumn` construct would not respond
correctly to alias adaptation as is used throughout the ORM, such as for
eager loading, polymorphic loading, etc.

Fixes: #6775
Change-Id: I77cec4b6e1b1003f2b6be242b54ada8e4a435250
doc/build/changelog/unreleased_14/6775.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_external_traversal.py