#24638: New feature: support adding an SQL comment in queries
-------------------------------------+-------------------------------------
Reporter: adamchainz | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: 1.8
(models, ORM) |
Severity: Normal | Resolution:
Keywords: queryset, query, | Triage Stage: Accepted
comment, optimizer hint |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by adamchainz):
For the record, here's the first open-source version of the regex-based
SQL-rewriting code I have that adds MySQL's `STRAIGHT_JOIN`:
https://github.com/adamchainz/django-
mysql/commit/cf69c24962c4a22cc2fac5b29319777ee2a44fb0 . If we can't add
`.comment()`, this is the probably the best solution possible.
--
Ticket URL: <https://code.djangoproject.com/ticket/24638#comment:8>
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/068.97d67992b16e184b1f2e1b8a8b7113e2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.