#5740: oracle inspectdb CharFields missing "max_length"
--------------------------------------------------+-------------------------
Reporter: Carl Karsten <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component:
django-admin.py inspectdb
Version: SVN | Keywords: oracle
Stage: Unreviewed | Has_patch: 0
--------------------------------------------------+-------------------------
forgive the flimsy report - I don't have an oracle db to confirm this. I
hacked the oracle code up to work with ceODBC, and inspectdb generated
td_fil = models.CharField(blank=True)
which causes syncdb:
"td_fil": CharFields require a "max_length" attribute.
because
"CharField has an extra required argument, max_length, the maximum length
(in characters) of the field. The max_length is enforced at the database
level and in Djangos validation."
http://www.djangoproject.com/documentation/model-api/#charfield
I don't think my hacks caused that. but it would be really nice if
someone could confirm it.
--
Ticket URL: <http://code.djangoproject.com/ticket/5740>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---