#17202: Double max_length using inspectdb with Oracle -------------------------------------+------------------------------------- Reporter: rodolfo.3+django@… | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: 1.3 (models, ORM) | Keywords: inspectdb oracle Severity: Normal | max_length Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- I created a table in a Oracle database with a "NVARCHAR2" field with size=150:
{{{ CREATE table "TEST" ( "CHAR_150" NVARCHAR2(150) ) }}} Then, when I run "manage.py inspectdb", the generated code is: {{{ class Test(models.Model): char_150 = models.CharField(max_length=300, blank=True) class Meta: db_table = u'test' }}} A field type "'''NVARCHAR2(150)'''" generate a "'''max_length=300'''" CharField. -- Ticket URL: <https://code.djangoproject.com/ticket/17202> 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 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.