]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Coerce float Python type to Float; ensure Python float coming back
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 23 Jun 2017 03:51:52 +0000 (23:51 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Jun 2017 15:05:38 +0000 (11:05 -0400)
commit1776597131ef96472b5188cebc72c31a387c90f4
treee158f177c7da7999323175263719216085a616d3
parent83c1e03c5c74c69facfc371840ffae890f05c338
Coerce float Python type to Float; ensure Python float coming back

Added some extra strictness to the handling of Python "float" values
passed to SQL statements.  A "float" value will be associated with the
:class:`.Float` datatype and not the Decimal-coercing :class:`.Numeric`
datatype as was the case before, eliminating a confusing warning
emitted on SQLite as well as unecessary coercion to Decimal.

Change-Id: I1bb1810ff1d198c0d929ccba5656e55401d74119
Fixes: #4017
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/suite/test_types.py
test/sql/test_types.py