#21126: Potential data corruption issue with Oracle and Mysql due to
SQLCompiler.resolve_columns row, fields misalignment
-------------------------------------+-------------------------------------
     Reporter:  manfre               |                    Owner:  manfre
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  1.5
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  1
  Needs tests:  1                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by akaariai):

 The test would need to have
 .annotate(someaggregate).select_related(a_model_containing_boolean_field).
 This should break MySQL's value conversion, that is, the boolean field
 isn't converted to True/False, instead it remains as the database return
 value of 1/0.

 I can try to write a test tonight, but I can't guarantee anything.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21126#comment:9>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.7b4f5452dde35e33bc3343a9b6599747%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to