#23797: SQL generated for negated F() expressions is incorrect
-------------------------------------+-------------------------------------
     Reporter:  Suriya Subramanian   |                    Owner:  Jacob
                                     |  Walls
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  1.7
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

 * has_patch:  0 => 1


Comment:

 Looks like there was consensus here around the proper query:
 NOT ((length = width) AND (length IS NULL) AND (width IS NULL))

 as well as its location in `build_query`.

 I submitted a patch that builds this query after checking if the
 comparison value is an instance of `Col`.
 https://github.com/django/django/pull/13118

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23797#comment:10>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.6da3048bdde9c8e86c6e520d0270f590%40djangoproject.com.

Reply via email to