#18333: Aggregating an annotated field does not quote the alias column name -------------------------------------+------------------------------------- Reporter: manfre | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: master (models, ORM) | Resolution: Severity: Normal | Triage Stage: Keywords: aggregate,annotate | Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by manfre):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: I'm not aware of any databases that need to quote '*', but just in case there are I provided two patches. The second preloads the cache with '*' to prevent quoting it. Most commonly encountered by '''COUNT(*)'''. Regardless of which patch is chosen (if any), 3rd party backends can override '''quote_cache''' to either have or omit this initial alias. -- Ticket URL: <https://code.djangoproject.com/ticket/18333#comment:1> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.