#16282: CommentTemplateTagTests.testRenderCommentFormFromObjectWithQueryCount 
fails
on MySQL
------------------------------------+-----------------------------------
               Reporter:  ojii      |          Owner:  nobody
                   Type:  Bug       |         Status:  new
              Milestone:            |      Component:  Testing framework
                Version:  SVN       |       Severity:  Normal
             Resolution:            |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  0
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
                  UI/UX:  0         |
------------------------------------+-----------------------------------

Comment (by ramiro):

 One extradata point:

 I see this only when using the MyISAM MySQL storage backend (and using the
 `--pair text.TextTests.test_cookie_date` trick). Inserting prints of
 `connection.queries` show that the SQL queries are:

 {{{
 #!sql
 SELECT `comment_tests_article`.`id`, `comment_tests_article`.`author_id`,
 `comment_tests_article`.`headline` FROM `comment_tests_article` WHERE
 `comment_tests_article`.`id` = 1
 SELECT `django_content_type`.`id`, `django_content_type`.`name`,
 `django_content_type`.`app_label`, `django_content_type`.`model` FROM
 `django_content_type` WHERE (`django_content_type`.`model` = 'article'
 AND `django_content_type`.`app_label` = 'comment_tests' )
 }}}

 The second query is the problematic one.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16282#comment:6>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to