#34967: Queries not generating GROUP BY clause with static annotation crashes on SQLite -------------------------------------+------------------------------------- Reporter: Simon Legtenborg | Owner: David | Sanders Type: Bug | Status: closed Component: Database layer | Version: 4.2 (models, ORM) | Severity: Normal | Resolution: fixed Keywords: sqlite | Triage Stage: Ready for | checkin Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak <felisiak.mariusz@…>):
* status: assigned => closed * resolution: => fixed Comment: In [changeset:"b863c5ffde0bafa5eaa9f262103eaeb71877787c" b863c5ff]: {{{ #!CommitTicketReference repository="" revision="b863c5ffde0bafa5eaa9f262103eaeb71877787c" Fixed #34967 -- Fixed queryset crash when grouping by constants on SQLite < 3.39. On SQLite < 3.39, this forces a GROUP BY clause with a HAVING clause when no grouping is specified. Co-authored-by: Simon Charette <charett...@gmail.com> }}} -- Ticket URL: <https://code.djangoproject.com/ticket/34967#comment:6> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018bc8978dc2-03943ed4-5956-4a3f-bca3-79d33b01f10f-000000%40eu-central-1.amazonses.com.