#1820: Autogenerated ManyToMany fields can generate too long identifiers for
mysql
to handle
------------------------------+---------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Database wrapper
Version: SVN | Resolution:
Keywords: mysql | Stage: Design decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------+---------------------------------------------
Changes (by Simon G. <[EMAIL PROTECTED]>):
* keywords: => mysql
* version: magic-removal => SVN
* stage: Unreviewed => Design decision needed
Comment:
{{{
from django.db import models
class This_Is_A_Really_Long_Model_Name(models.Model):
var1 = models.CharField(maxlength=20)
class
And_This_Is_Another_ReallyLong_Model_Name_Because_MySQL_Cant_Take_Long_Identifiers(models.Model):
var2 = models.ForeignKey(This_Is_A_Really_Long_Model_Name)
}}}
Raises:
_mysql_exceptions.ProgrammingError: (1103, "Incorrect table name
't1820_and_this_is_another_reallylong_model_name_because_mysql_cant_take_long_identifiers'")
which looks related.
Not sure what the best solution is - do we just want to document this?
--
Ticket URL: <http://code.djangoproject.com/ticket/1820#comment:3>
Django Code <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
-~----------~----~----~----~------~----~------~--~---