mirror of https://github.com/django/django.git
Stopped adapting DecimalField values to strings on Oracle.
cx_Oracle handles decimal.Decimal.
expressions_case.tests.CaseExpressionTests.test_update_decimal fails without
this change.
Follow up to 9c5c9bd709
.
This commit is contained in:
parent
9bc8b1ad2d
commit
bde33bdd51
|
@ -570,6 +570,9 @@ END;
|
||||||
return Oracle_datetime(1900, 1, 1, value.hour, value.minute,
|
return Oracle_datetime(1900, 1, 1, value.hour, value.minute,
|
||||||
value.second, value.microsecond)
|
value.second, value.microsecond)
|
||||||
|
|
||||||
|
def adapt_decimalfield_value(self, value, max_digits=None, decimal_places=None):
|
||||||
|
return value
|
||||||
|
|
||||||
def combine_expression(self, connector, sub_expressions):
|
def combine_expression(self, connector, sub_expressions):
|
||||||
lhs, rhs = sub_expressions
|
lhs, rhs = sub_expressions
|
||||||
if connector == '%%':
|
if connector == '%%':
|
||||||
|
|
Loading…
Reference in New Issue