#5014: manage.py inspect db is not using the new DecimalField
-------------------------------------+-------------------------------------
               Reporter:  James      |          Owner:  nobody
  <james_027@…>                      |         Status:  new
                   Type:  Bug        |      Component:  Database layer
              Milestone:             |  (models, ORM)
                Version:  SVN        |       Severity:  Normal
             Resolution:             |       Keywords:
           Triage Stage:  Accepted   |      Has patch:  1
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  1          |  Easy pickings:  0
-------------------------------------+-------------------------------------
Changes (by claudep):

 * needs_better_patch:  0 => 1
 * easy:   => 0
 * needs_tests:  1 => 0


Comment:

 I added a patch which adds guessed max_digits and decimal_places for
 SQLite (with a notice) because decimal fields in SQLite are simply mapped
 as real (float) type. This way, the output of inspectdb is valid.

 The problem with the current patch is that it doesn't pass with MySQL.
 Strangely, my version of mysqldb (1.2.2-10+b1) is always returning the
 value + 2 in cursor.description[4] (precision). Is this a known mysqldb
 bug?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5014#comment:7>
Django <http://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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to