]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Oracle's "native decimal" metadata begins to return
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Jul 2010 20:57:02 +0000 (16:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Jul 2010 20:57:02 +0000 (16:57 -0400)
commit25db56bc0c1ee30fc0ad9166ac48de7dc8328762
tree019bf869c9876ced371ac6292df6b36ca1f0ebae
parent005d0453500c85fc8a6f15ce709251e2c5dae0f7
  - Oracle's "native decimal" metadata begins to return
    ambiguous typing information about numerics
    when columns are embedded in subqueries as well
    as when ROWNUM is consulted with subqueries, as we
    do for limit/offset.  We've added these ambiguous
    conditions to the cx_oracle "convert to Decimal()"
    handler, so that we receive numerics as Decimal
    in more cases instead of as floats.  These are
    then converted, if requested, into Integer
    or Float, or otherwise kept as the lossless
    Decimal [ticket:1840].
CHANGES
lib/sqlalchemy/dialects/oracle/cx_oracle.py
test/dialect/test_oracle.py