#19672: Negated Q objects over nullable joins result in invalid SQL
-------------------------------------+-------------------------------------
     Reporter:  ikelly               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:  fixed
     Severity:  Normal               |             Triage Stage:  Ready for
     Keywords:  Q ForeignKey         |  checkin
  nullable                           |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by Anssi Kääriäinen <akaariai@…>):

 In [changeset:"8ad436636fd385abd144274952b0c066885af042"]:
 {{{
 #!CommitTicketReference repository=""
 revision="8ad436636fd385abd144274952b0c066885af042"
 [1.5.x] Fixed #19672 -- Error in negated Q() filtering

 There was a variable overwrite error in negated join filtering. This
 happened when add_filter() was adding the IS NULL condition to the
 WHERE clause.

 This is not a backport from master as there have been some other
 refactorings which made this patch irrelevant.

 The patch is from Ian Kelly.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19672#comment:5>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to