Opened 10 years ago

Closed 10 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');

Change History (1)

comment:1 by Tim Graham, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #20775

Note: See TracTickets for help on using tickets.
Back to Top