#30248: Implement case insensitive fields in Sqlite
-------------------------------------+-------------------------------------
     Reporter:  Stuart Axon          |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  sqlite citext        |             Triage Stage:
  postgres                           |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Old description:

> Sqlite supports case insensitive fields by setting COLLATE NOCASE.
>
> This works as you would expect for SELECT and INSERT.
>

> It would be great to have equivalents to the CIText fields in
> postgres.contrib - this would make it a lot easier to unit test code
> using those fields.

New description:



--

Comment (by Stuart Axon):

 Cheers, I did send an initial mail to the dev list, but think it might
 have got eaten as I didn't see it (also had a bit of bad luck updating
 this ticket, updating the description, not leaving a comment).

 One thing I found out, is that even with COLLATE NOCASE sqlites regexes
 don't default to case insensitive, so that would need some support at the
 django end.

 I had a bit of a look into how the postgres citext works, but couldn't
 work out how to make Operators that integrate with Django in the same way.
 I guess a really tiny implementation, as fields.py might be a start ?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30248#comment:4>
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/064.9b5258eb4846bd6e6cc9a6350c411295%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to