]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The precision used when coercing a returned floating point value to
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Nov 2013 01:04:19 +0000 (20:04 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Nov 2013 01:04:19 +0000 (20:04 -0500)
commit6b79d2ea7951abc2bb6083b541db0fbf71590dd3
tree4c1edc6856fe743b44e69c1f70750d469b642ed5
parentf112dc1d533033f19186eb65227aba1660d03102
- The precision used when coercing a returned floating point value to
Python ``Decimal`` via string is now configurable.  The
flag ``decimal_return_scale`` is now supported by all :class:`.Numeric`
and :class:`.Float` types, which will ensure this many digits are taken
from the native floating point value when it is converted to string.
If not present, the type will make use of the value of ``.scale``, if
the type supports this setting and it is non-None.  Otherwise the original
default length of 10 is used. [ticket:2867]
12 files changed:
doc/build/changelog/changelog_09.rst
doc/build/changelog/migration_09.rst
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
lib/sqlalchemy/dialects/postgresql/pg8000.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/processors.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_types.py
test/dialect/mysql/test_types.py
test/requirements.py