#19884: Inspectdb on Oracle doesn't produce correct field types
-------------------------------------+-------------------------------------
     Reporter:  akaariai             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Description changed by shai:

Old description:

> The test inspectdb.test_field_types() has multiple errors, at least:
>   - CharField lengths not correctly inspected (returns double the length
> of generated field)
>   - FloatField not correctly inspected (returns DecimalField with
> max_digits=-127)
>   - DateTimeField is inspected as TimeField
>
> Getting all these to work correctly will be somewhat hard. So, the
> suggested short-term fix is to just mark the test as expectedFailure on
> Oracle. Inspectdb isn't high-priority as the output should be hand-edited
> in any case.

New description:

 The test inspectdb.test_field_types() has multiple errors, at least:
   - CharField lengths not correctly inspected (returns double the length
 of generated field)
   - ~~FloatField not correctly inspected (returns DecimalField with
 max_digits=-127)~~
   - DateTimeField is inspected as TimeField

 Getting all these to work correctly will be somewhat hard. So, the
 suggested short-term fix is to just mark the test as expectedFailure on
 Oracle. Inspectdb isn't high-priority as the output should be hand-edited
 in any case.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19884#comment:5>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.977c34a591bcf54627ed7a0ff7901055%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to