#21903: Query with select_related and defer on MySQL causes id field to be 
returned
as bool
-------------------------------+--------------------------------------
     Reporter:  matklad        |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.6
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by russellm):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 For anyone digging into this - it's possible this is a bug with
 select_related, but keep in mind that it's not out of the question that it
 might also be a… ahem… feature… of MySQL.

 See #16809 for an example of the sort of thing MySQL will do if you give
 it enough rope. Check to see if this is a problem on other databases.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21903#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.80f59b2fa47d4dc86ccf2904ea52c6e7%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to