]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
produce column copies up the whole hierarchy first
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Jun 2022 22:55:19 +0000 (18:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 29 Jun 2022 15:29:20 +0000 (11:29 -0400)
commit3ea6c365a2dd7060f0c6d462e2e7752c832f59af
tree6612aa4b96659e3d7079b6ca10207b96057b7433
parentde4adecae6e77c0677a70e807bae5ac8cc4c6314
produce column copies up the whole hierarchy first

Fixed issue where a hierarchy of classes set up as an abstract or mixin
declarative classes could not declare standalone columns on a superclass
that would then be copied correctly to a :class:`_orm.declared_attr`
callable that wanted to make use of them on a descendant class.

Originally it looked like this would produce an ordering change,
however an adjustment to the flow for produce_column_copies
has avoided that for now.

Fixes: #8190
Change-Id: I4e2ee74edb110793eb42691c3e4a0e0535fba7e9
(cherry picked from commit 9d12d493eb38f958c2d50da28f83ccc6de01f0dc)
doc/build/changelog/unreleased_14/8190.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_base.py
test/orm/declarative/test_mixin.py