#28863: Regression in 2.0: an annotated then filtered db function using a Q 
object
crashes
-------------------------------------+-------------------------------------
     Reporter:  Adam (Chainz)        |                    Owner:  Sergey
  Johnson                            |  Fedoseev
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  2.0
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * cc: Josh Smeaton (added)


Comment:

 I'm not sure. I noticed that #27021 says that something like
 `Model.objects.annotate(boolfield=ExpressionWrapper(Q(field__gte=4),
 output_field=BooleanField()))` has emerged as a common pattern but is
 discouraged. The current PR generates invalid SQL on Oracle.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28863#comment:13>
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/068.7c3c8ddde45444de6e27d844bc9be8bb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to