]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- More tweaks to cx_oracle Decimal handling.
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Jul 2010 18:50:45 +0000 (14:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Jul 2010 18:50:45 +0000 (14:50 -0400)
commit10db67be5b783b94b59dd7cf039f8c322cf837c8
tree66b6f6ceeaff2a0d7038e80924b95466b35e0b46
parentf92cfd06811e224cd34fe9225d250080779dc140
- More tweaks to cx_oracle Decimal handling.
"Ambiguous" numerics with no decimal place
are coerced to int at the connection handler
level.  The advantage here is that ints
come back as ints without SQLA type
objects being involved and without needless
conversion to Decimal first.

Unfortunately, some exotic subquery cases
can even see different types between
individual result rows, so the Numeric
handler, when instructed to return Decimal,
can't take full advantage of "native decimal"
mode and must run isinstance() on every value
to check if its Decimal already. Reopen of
[ticket:1840]
CHANGES
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
test/dialect/test_oracle.py