]> 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:48:25 +0000 (13:48 -0400)
commit6896d2bb4753870a69acd31429f36ee2d107d462
tree81ce3076dcb3d02da8f174a51d7b9a76f555497d
parent0d1383fc1ba1f75599832737b9d81a5fcdfcaaf9
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
(cherry picked from commit 6d7d48af0dec6325f87ce497f769827107ad5035)
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/type_api.py
test/sql/test_types.py