]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix boolean check in new path comparison logic
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 24 Mar 2019 02:05:22 +0000 (22:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 24 Mar 2019 16:35:53 +0000 (12:35 -0400)
commitda04aa577b6e539a6472df62ee39c4a51cca9dd9
tree7746c455c102e15397b11c565b302a5b81f19c51
parent8acbc2624fb4b457e47fab93e6a44a1e37caeddc
Fix boolean check in new path comparison logic

Fixed regression where a new error message that was supposed to raise when
attempting to link a relationship option to an AliasedClass without using
:meth:`.PropComparator.of_type` would instead raise an ``AttributeError``.
Note that in 1.3, it is no longer valid to create an option path from a
plain mapper relationship to an :class:`.AliasedClass` without using
:meth:`.PropComparator.of_type`.

Fixes: #4566
Change-Id: Ic547a1c8408e41aec66ef9644aac7f76f50dd064
doc/build/changelog/unreleased_13/4566.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
lib/sqlalchemy/orm/util.py
test/orm/test_options.py