#26899: Document why RawSQL requires parameters
-------------------------------------+-------------------------------------
Reporter: wolever | Owner:
Type: | petedmarsh
Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by wolever):
I'm glad the rationale is documented, but I can't help but feel like
keeping this parameter required is both frustrating for folk who aren't
performing injectable queries and more importantly inconsistent with the
other mechanisms Django offers to drop into raw SQL. Specifically,
`QuerySet.raw(…)` doesn't require an empty params, and neither does
`QuerySet.extra(…)`.
--
Ticket URL: <https://code.djangoproject.com/ticket/26899#comment:10>
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/065.e71a2fd75c967b16a12e6f4f3faba650%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.