]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Return self when Variant.coerce_compared_value would return impl
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Apr 2017 15:36:16 +0000 (11:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Apr 2017 17:47:42 +0000 (13:47 -0400)
commit6d7d48af0dec6325f87ce497f769827107ad5035
tree9eaf19b69bde15881a826c86d0deb8f852d42b37
parentb32a0fd286de3cd4cbfd248d74e200985d7e214a
Return self when Variant.coerce_compared_value would return impl

Fixed regression released in 1.1.5 due to :ticket:`3859` where
adjustments to the "right-hand-side" evaluation of an expression
based on :class:`.Variant` to honor the underlying type's
"right-hand-side" rules caused the :class:`.Variant` type
to be inappropriately lost, in those cases when we *do* want the
left-hand side type to be transferred directly to the right hand side
so that bind-level rules can be applied to the expression's argument.

Change-Id: Ia54dbbb19398549d654b74668753c4152599d900
Fixes: #3952
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/type_api.py
test/sql/test_types.py