]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
consider column.name directly when evaluating use_existing_column
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Feb 2023 14:10:20 +0000 (09:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Feb 2023 14:11:36 +0000 (09:11 -0500)
commitebcb80be9ce27d9cd383dc7c0750569c43587df2
tree4e8ab4d2c0df8a2cedf6a20b17070beb29e10dff
parentc6ecc39b62b41c4f21375a51bac582c61baa3d9d
consider column.name directly when evaluating use_existing_column

Fixed issue where new :paramref:`_orm.mapped_column.use_existing_column`
feature would not work if the two same-named columns were mapped under
attribute names that were differently-named from the explicit name given to
the column itself. The attribute names can now be differently named when
using this parameter.

Fixes: #9332
Change-Id: I43716b8ca2b089e54a2b078db28b6c4770468bdd
doc/build/changelog/unreleased_20/9332.rst [new file with mode: 0644]
lib/sqlalchemy/orm/properties.py
test/orm/declarative/test_inheritance.py