Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#28932 closed Bug (fixed)

DecimalFields truncates trailing zeros on Oracle.

Reported by: Mariusz Felisiak Owned by: Sergey Fedoseev
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: oracle decimal
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Oracle automatically removes trailing zeros from NUMBER fields, we should probably restore decimal field converter on Oracle, removed in https://github.com/django/django/commit/7c1f3901bcdabb1340a621e7df9b24f3acd0d6f3.

Change History (3)

comment:1 by Sergey Fedoseev, 7 years ago

Has patch: set
Owner: changed from nobody to Sergey Fedoseev
Triage Stage: UnreviewedAccepted

comment:2 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In c8a85e3e:

Fixed #28932 -- Prevented Oracle from truncating trailing zeros in the fractional part of DecimalField.

Fixes the test added in 6fd6d8383f48ea2fe4e058725fa30529a083e9a5.
Regression in 7c1f3901bcdabb1340a621e7df9b24f3acd0d6f3.

comment:3 by Tim Graham <timograham@…>, 7 years ago

In 7c939ae:

[2.0.x] Refs #28932 -- Skipped the failing test for refs #28915 on Oracle.

Note: See TracTickets for help on using tickets.
Back to Top