#14661: A couple of MySQL/MyISAM test failures
----------------------------------------+-----------------------------------
          Reporter:  kmtracey           |         Owner:  nobody 
            Status:  new                |     Milestone:  1.3    
         Component:  Testing framework  |       Version:  1.2    
        Resolution:                     |      Keywords:  blocker
             Stage:  Accepted           |     Has_patch:  0      
        Needs_docs:  0                  |   Needs_tests:  0      
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Comment (by russellm):

 In the same vein; there's at least one failure under InnoDB, too:
 {{{
 ======================================================================
 ERROR: test_ticket7778 (regressiontests.queries.tests.SubclassFKTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/Users/rkm/projects/django/hg/tests/regressiontests/queries/tests.py",
 line 1154, in test_ticket7778
     tvc.delete()
   File "/Users/rkm/projects/django/live/django/db/models/base.py", line
 579, in delete
     collector.delete()
   File "/Users/rkm/projects/django/live/django/db/models/deletion.py",
 line 48, in decorated
     func(self, *args, **kwargs)
   File "/Users/rkm/projects/django/live/django/db/models/deletion.py",
 line 229, in delete
     query.delete_batch(pk_list, self.using)
   File
 "/Users/rkm/projects/django/live/django/db/models/sql/subqueries.py", line
 44, in delete_batch
     self.do_query(self.model._meta.db_table, where, using=using)
   File
 "/Users/rkm/projects/django/live/django/db/models/sql/subqueries.py", line
 29, in do_query
     self.get_compiler(using).execute_sql(None)
   File "/Users/rkm/projects/django/live/django/db/models/sql/compiler.py",
 line 735, in execute_sql
     cursor.execute(sql, params)
   File "/Users/rkm/projects/django/live/django/db/backends/mysql/base.py",
 line 86, in execute
     return self.cursor.execute(query, args)
   File "/Users/rkm/.virtualenvs/django/lib/python2.6/site-
 packages/MySQLdb/cursors.py", line 173, in execute
     self.errorhandler(self, exc, value)
   File "/Users/rkm/.virtualenvs/django/lib/python2.6/site-
 packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
     raise errorclass, errorvalue
 IntegrityError: (1451, 'Cannot delete or update a parent row: a foreign
 key constraint fails (`test_testdb`.`queries_tvchef`, CONSTRAINT
 `celebrity_ptr_id_refs_id_be1236fb` FOREIGN KEY (`celebrity_ptr_id`)
 REFERENCES `queries_celebrity` (`id`))')
 }}}

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

Reply via email to