#20775: Incorrect description of startswith, istartswith, contains, icontains,
endswith and iendswith
--------------------------------+--------------------------------------
Reporter: a_nekhaychik@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.5
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by a_nekhaychik@…):
* status: closed => new
* resolution: invalid =>
Comment:
But it is really confuses. If reader knows SQL very well, he knows that
there is big performance difference between LIKE, LIKE BINARY and ILIKE.
And let's scroll down to regex section:
''
regex
.........
Example:
Entry.objects.get(title__regex=r'^(An?|The) +')
SQL equivalents:
SELECT ... WHERE title REGEXP BINARY '^(An?|The) +'; -- MySQL
SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'c'); -- Oracle
SELECT ... WHERE title ~ '^(An?|The) +'; -- PostgreSQL
SELECT ... WHERE title REGEXP '^(An?|The) +'; -- SQLite
''
We also see here "SQL equivalents" but for concrete backend.
If you insist that current description is correct, I'd recommend add
concrete examples for MySQL and PostgreSQL.
--
Ticket URL: <https://code.djangoproject.com/ticket/20775#comment:3>
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/084.5d1ed36c557d5e853bbfb97223bf90bf%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.