#13711: Very long field names on models cause problems
------------------------------------------+---------------------------------
Reporter: russellm | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
------------------------------------------+---------------------------------
Under MySQL, you get
{{{
_mysql_exceptions.OperationalError: (1059, "Identifier name
'verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_id'
is too long")
}}}
raised as an error during runtime.
Under Postgres, you get
{{{
NOTICE: identifier
"verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_id"
will be truncated to
"verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
}}}
appear silently in the logs.
This problem (and the solution) is analogous to #13528 for db_table.
--
Ticket URL: <http://code.djangoproject.com/ticket/13711>
Django <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.