#36233: Specific DecimalField with max_digits > 15 can be stored but not 
retrieved
on SQLite
-------------------------------------+-------------------------------------
     Reporter:  Orazio               |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  sqlite, orm,         |             Triage Stage:  Accepted
  decimalfield, invalidoperation     |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Orazio):

 I omitted the decimal part because it didn’t seem relevant but it actually
 occurs when the integer part has more than 15 digits, such as in the
 following model as well:

 {{{
 class Apple(models.Model):
         weight = models.DecimalField(max_digits=21, decimal_places=5)
 }}}

 While storing the same number 9999999999999999
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36233#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701956d40ad4d-61cea65b-e78d-4cf2-a295-f79c1cea405c-000000%40eu-central-1.amazonses.com.

Reply via email to