diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-06-11 16:48:00 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-06-11 16:48:00 -0400 |
| commit | e765c55e8cc71bb3773b86b5260df6cb69aff102 (patch) | |
| tree | dcfa5fec47b29336b2bedb49f87e1772f3b23069 /test/ext | |
| parent | a463bb31ea8a93ffd15e4fb7cc71d84c4d206572 (diff) | |
| download | sqlalchemy-e765c55e8cc71bb3773b86b5260df6cb69aff102.tar.gz | |
- 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
Diffstat (limited to 'test/ext')
| -rw-r--r-- | test/ext/test_hybrid.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ext/test_hybrid.py b/test/ext/test_hybrid.py index b895d2fb2..e36b8f7e9 100644 --- a/test/ext/test_hybrid.py +++ b/test/ext/test_hybrid.py @@ -7,6 +7,7 @@ from sqlalchemy.testing import eq_, AssertsCompiledSQL, assert_raises_message from sqlalchemy.testing import fixtures from sqlalchemy import inspect + class PropertyComparatorTest(fixtures.TestBase, AssertsCompiledSQL): __dialect__ = 'default' |
