Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for Oracle performance fix: improve performance on decimals

  • Loading branch information...
commit d71ac107835bf1978bcb5bd0752f84d0631d9989 1 parent 171eaec
@shaib authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/db/backends/oracle/base.py
View
5 django/db/backends/oracle/base.py
@@ -818,9 +818,10 @@ def _to_unicode(s):
return s
-def _decimal_or_int(value):
+def _decimal_or_int(value,
+ D=decimal.Decimal):
if '.' in value:
- return decimal.Decimal(value)
+ return D(value)
else:
return int(value)
Please sign in to comment.
Something went wrong with that request. Please try again.