﻿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
7536	mysql inspectdb unable to handle newdecimal	Jerome Etienne <jerome.etienne@…>	nobody	"'''Description:'''
doing inspectdb on a mysql newdecimal field is converted as a TextField instead of a decimal.

mysql 5 got a type ""newdecimal"" [http://dev.mysql.com/doc/refman/5.1/en/c-api-datatypes.html MYSQL_TYPE_NEWDECIMAL]) and this is not handled by django inspectdb. 

[http://code.djangoproject.com/browser/django/trunk/django/db/backends/mysql/introspection.py#L77 DATA_TYPES_REVERSE] in mysql introspection.py doesnt contains the FIELD_TYPE.NEWDECIMAL from mysqldb-python. So in DATA_TYPE_REVERSE, i just added
{{{
    FIELD_TYPE.NEWDECIMAL: 'DecimalField',
}}}

the patch is attached
"		closed	django-admin.py inspectdb	dev		fixed			Ready for checkin	1	0	0	0	0	0
