#23357: MySQL DatabaseIntrospection.data_types_reverse for FIELD_TYPE.SHORT is
wrong type
-------------------------------+--------------------
Reporter: jdufresne | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The MySQL backend maps a database field of type `FIELD_TYPE.SHORT` to
`IntegerField`, but it seems to me that it should map to
`SmallIntegerField`. The `SmallIntegerField` field class produces a
`smallint` which eventually ends up as data type `FIELD_TYPE.SHORT`.
This can be found in file `django/db/backends/mysql/introspection.py`,
class attribute
`DatabaseIntrospection.data_types_reverse[FIELD_TYPE.SHORT]`.
Contrast this with the file `django/db/backends/mysql/creation.py`, class
attribute `DatabaseCreation.data_types['SmallIntegerField']`.
--
Ticket URL: <https://code.djangoproject.com/ticket/23357>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.ece6ad523bafdaede4a55b526510ff8d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.