[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Ensure Variant passes along impl right-hand type
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2016-11-22 21:55:08
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/df9b6492e5ca/ Changeset: df9b6492e5ca Branch: master User: zzzeek Date: 2016-11-22 21:39:16+00:00 Summary: Ensure Variant passes along impl right-hand type Fixed issue in :class:`.Variant` where the "right hand coercion" logic, inherited from :class:`.TypeDecorator`, would coerce the right-hand side into the :class:`.Variant` itself, rather than what the default type for the :class:`.Variant` would do. In the case of :class:`.Variant`, we want the type to act mostly like the base type so the default logic of :class:`.TypeDecorator` is now overridden to fall back to the underlying wrapped type's logic. Is mostly relevant for JSON at the moment. This patch additionally adds documentation and basic tests to allow for backend-agnostic comparison of JSON index elements to other objects. A future version should attempt to improve upon this by providing "astext", "asint" types of operators. Change-Id: I7b7b45d604a4ae8d1dc236a5a1248695aab5232e Fixes: #3859 Affected #: 5 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |