#33849: Like statement is not case-sensitive in SQLite backend
-------------------------------------+-------------------------------------
Reporter: Ali | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version:
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: Sqlite __contains | Triage Stage:
__icontains | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Ali):
Replying to [comment:1 Mariusz Felisiak]:
> Duplicate of #15659, see
[https://code.djangoproject.com/ticket/15659#comment:8 comment]:
> > ''"but looking at GLOB, this doesn't seem possible, because it cannot
be used as a drop in replacement for LIKE with different wildcards, since
it lacks the ESCAPE clause that LIKE has, which we need"''
We have **PRAGMA** statement called **case_sensitive_like**, which is
designed to specifically make the LIKE operator case-sensitive for ASCII
characters, see the
[https://www.sqlite.org/pragma.html#pragma_case_sensitive_like document],
so we can use it to fix this?
--
Ticket URL: <https://code.djangoproject.com/ticket/33849#comment:2>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018206c0dcf9-4817cdeb-e976-4120-b0b9-631e65319da9-000000%40eu-central-1.amazonses.com.