]> 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:22:59 +0000 (11:22 -0400)
commit9d12d493eb38f958c2d50da28f83ccc6de01f0dc
tree0063d1e4d2be517d3509d50c1b3f64201fc0ccce
parentf19e50ab75cfc904acef31434c92542f3ab50d61
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
doc/build/changelog/unreleased_14/8190.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_base.py
test/orm/declarative/test_mixin.py