#26602: Provide a way to manage grouping with RawSQL
-------------------------------------+-------------------------------------
Reporter: Jamie Cockburn | Owner: Manav
| Agarwal
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: QuerySet.extra | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Manav Agarwal):
I wrote the following test in the **BasicExpressionsTests** class in
**expressions/test_regression.py**
{{{
def test_regression(self):
companies =
Company.objects.annotate(salary=RawSQL("SUM(num_chairs) OVER (ORDER BY
num_employees)",[]))
self.assertEqual(companies.count(),3)
}}}
And found that the error was not returned after
[https://github.com/django/django/commits/3f32154f40a855afa063095e3d091ce6be21f2c5]
commit but was there in the code before this commit.
--
Ticket URL: <https://code.djangoproject.com/ticket/26602#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.ecdf7e697887ac206ab2c6891f385189%40djangoproject.com.