Opened 12 years ago
Last modified 2 years ago
#19884 closed Bug
Inspectdb on Oracle doesn't produce correct field types — at Initial Version
Reported by: | Anssi Kääriäinen | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | felisiak.mariusz@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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.
Note:
See TracTickets
for help on using tickets.