Code

Changes between Initial Version and Version 9 of Ticket #17854


Ignore:
Timestamp:
03/13/12 04:37:34 (2 years ago)
Author:
ramiro
Comment:

Would be acceptable to "fix" this by documenting the limitations of the three database engine/adaptors in the DB notes document?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17854

    • Property Severity changed from Release blocker to Normal
    • Property Patch needs improvement unset
    • Property Component changed from Uncategorized to Database layer (models, ORM)
    • Property Needs tests unset
    • Property Summary changed from DecimalField problem to Problem with DecimalField and big vlues of max_digits, decimal_places, sqlite3 backend
    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #17854 – Description

    initial v9  
    1 For a model field created as :: models.DecimalField(max_digits = 200, decimal_places = 100, blank = False, null = False) 
    2 While using admin interface to insert a record involving such a DecimalField, the format changes (loss of precision and it uses scientific notation (even in the database)) (Please note - it works properly for low precision values (example - .987654321001234) - but for larger precision values (probably 15 decimal_places or more) it results in loss of precision) 
     1For a model field created as 
     2{{{ 
     3models.DecimalField(max_digits = 200, decimal_places = 100, blank = False, null = False) 
     4}}} 
    35 
    4 django version 1.3.1 and 1.4c1 (don't know about older versions); 
    5 python 2.6.6; 
    6 linux; 
     6While using admin interface to insert a record involving such a !DecimalField, the format changes (loss of precision and it uses scientific notation (even in the database)) (Please note - it works properly for low precision values (example - .987654321001234) - but for larger precision values (probably 15 decimal_places or more) it results in loss of precision) 
     7 
     8* django version 1.3.1 and 1.4c1 (don't know about older versions); 
     9* python 2.6.6; 
     10* linux;