﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17202	Inspectdb produces incorrect max_length for NVARCHAR2 columns with Oracle	rodolfo.3+django@…	nobody	"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.

"	Bug	closed	Database layer (models, ORM)	1.3	Normal	duplicate	inspectdb oracle max_length mysql	Shai Berger	Accepted	0	0	0	0	0	0
