#20775: Incorrect description of istartswith
--------------------------------+--------------------
Reporter: a_nekhaychik@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------
istartswith
On the page: https://docs.djangoproject.com/en/dev/ref/models/querysets
/#field-lookups we can read:
''istartswith
Case-insensitive starts-with.
Example:
Entry.objects.filter(headline__istartswith='will')
SQL equivalent:
SELECT ... WHERE headline ILIKE 'Will%';''
But there is no db backend which uses ILIKE. LIKE will be used for MySQL.
Again if you assume MySQL by default in documentation then:
''startswith
Case-sensitive starts-with.
Example:
Entry.objects.filter(headline__startswith='Will')
SQL equivalent:
SELECT ... WHERE headline LIKE 'Will%';
''
is incorrect because LIKE BINARY will be used.
The same for contains, icontains, endswith and iendswith.
--
Ticket URL: <https://code.djangoproject.com/ticket/20775>
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/069.44533c2ab6b775ebca695b0644469ed5%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.