]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed an unexpected-use regression whereby custom :class:`.Comparator`
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Jun 2015 20:48:00 +0000 (16:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Jun 2015 20:48:00 +0000 (16:48 -0400)
commite765c55e8cc71bb3773b86b5260df6cb69aff102
treedcfa5fec47b29336b2bedb49f87e1772f3b23069
parenta463bb31ea8a93ffd15e4fb7cc71d84c4d206572
- Fixed an unexpected-use regression whereby custom :class:`.Comparator`
objects that made use of the ``__clause_element__()`` method and
returned an object that was an ORM-mapped
:class:`.InstrumentedAttribute` and not explicitly a
:class:`.ColumnElement` would fail to be correctly
handled when passed as an expression to :meth:`.Session.query`.
The logic in 0.9 happened to succeed on this, so this use case is now
supported. fixes #3448
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/query.py
test/ext/test_hybrid.py
test/orm/test_descriptor.py
test/orm/test_query.py