Opened 11 years ago
Closed 11 years ago
#23634 closed Cleanup/optimization (duplicate)
QuerySet API example incorrectly states that iexact uses ILIKE
| Reported by: | djbug | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Update documents to reflect that iexact uses UPPER (not ILIKE) here
https://docs.djangoproject.com/en/dev/ref/models/querysets/#iexact
SQL equivalent of
Blog.objects.get(nameiexact='beatles blog')
would be
SELECT ... WHERE UPPER(name) = UPPER('beatles blog');
Note:
See TracTickets
for help on using tickets.
Duplicate of #20775