#30120: Query syntax error with condition and distinct combination
-------------------------------------+-------------------------------------
               Reporter:  Claude     |          Owner:  nobody
  Paroz                              |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  2.2
  layer (models, ORM)                |
               Severity:  Release    |       Keywords:
  blocker                            |
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 A `Count` annotation containing both a `Case` condition and a
 `distinct=True` param produces a query error on Django 2.2 (whatever the
 db backend). A space is missing at least (`... COUNT(DISTINCTCASE WHEN
 ...`).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30120>
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/050.24a7740b2fc2b62f259530c0ea1eac68%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to