#2720: Wrong syntax generated for foreign keys under MySQL
----------------------------------+-----------------------------------------
   Reporter:  anonymous           |                Owner:  adrian          
     Status:  new                 |            Component:  Database wrapper
    Version:                      |           Resolution:                  
   Keywords:  innodb foreign key  |                Stage:  Accepted        
  Has_patch:  1                   |           Needs_docs:  0               
Needs_tests:  0                   |   Needs_better_patch:  1               
----------------------------------+-----------------------------------------
Changes (by yary h <[EMAIL PROTECTED]>):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 _get_many_to_many_sql_for_model was assuming that all referred-to models
 were already created, that breaks when there's a ManyToMany field
 referring to a model in a different app. I just uploaded a version of this
 patch which fixes that.
 
 I'm having troulbe uploading tests, so get the 2k tarball
 here:[http://yary.ack.org/intrapp.tgz]
 
 These tests took a while to get right, and still could use more
 refinement. They work well to ferret out the problem with MySQL/InnoDB,
 but will give spurious errors on a database that does not enforce foreign
 keys.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2720#comment:14>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to