summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-06-26 12:44:15 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-06-26 12:46:53 -0400
commitfae82dda00aaba597deae862088f15c9b5255716 (patch)
tree242f1b858fbf9ce37d2394cb066d28b089b4ab02 /lib/sqlalchemy/engine/interfaces.py
parente04594339c19c3cd8b8e0d96ce83e5ded961dbb7 (diff)
downloadsqlalchemy-fae82dda00aaba597deae862088f15c9b5255716.tar.gz
Return given type when it matches the adaptation
The rules for type coercion between :class:`.Numeric`, :class:`.Integer`, and date-related types now include additional logic that will attempt to preserve the settings of the incoming type on the "resolved" type. Currently the target for this is the ``asdecimal`` flag, so that a math operation between :class:`.Numeric` or :class:`.Float` and :class:`.Integer` will preserve the "asdecimal" flag as well as if the type should be the :class:`.Float` subclass. Change-Id: Idfaba17220d6db21ca1ca4dcb4c19834cd397817 Fixes: #4018
Diffstat (limited to 'lib/sqlalchemy/engine/interfaces.py')
0 files changed, 0 insertions, 0 deletions