#30394: Mutiple annotation with Sum return wrong values.
-------------------------------------+-------------------------------------
Reporter: Gouri | Owner: nobody
Javed |
Type: Bug | Status: new
Component: Database | Version: 2.2
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
UserRoleAccount.objects.filter(pk='24f4a032-3f83-4123-8330-fa60fcbb880c').aggregate(
given_count=Sum(
Case(When(user_observations_given__group=grp, then=1),
output_field=IntegerField())
),
taken_count=Sum(
Case(When(user_observations_taken__group=grp, then=1),
output_field=IntegerField())
)
)
--
Ticket URL: <https://code.djangoproject.com/ticket/30394>
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/053.46faaf5654311adac9ddfba023ef0a45%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.