Re: Case sensitivity

Поиск
Список
Период
Сортировка
От Dev Kumkar
Тема Re: Case sensitivity
Дата
Msg-id CALSLE1MbLoGAJViNy_iw18oua8Mhx0HGtz7c+XKYyj4W34OeJA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Case sensitivity  (Andrew Sullivan <ajs@crankycanuck.ca>)
Ответы Re: Case sensitivity
Список pgsql-general
Actually for searches lower will work.
But the other important aspect is 'inserts' which would result 2 rows if the values are 'A' and 'a'. Intent here to have it case insensitive.

If CITEXT it will update the same row and works.
CITEXT is an alternative but was wondering if there is any other alternate solution/setting while creating database.

Also does CITEXT fetch via JDBC works the same way as fetch/set string values? Any quick comments here.
http://techie-experience.blogspot.in/2013/04/hibernate-supporting-case-insensitive.html

Regards...


On Wed, Dec 11, 2013 at 8:58 PM, Andrew Sullivan <ajs@crankycanuck.ca> wrote:
On Wed, Dec 11, 2013 at 04:55:07PM +0530, Dev Kumkar wrote:
You could build lower() indexes on any column you want to search CI
and lower() all the input text during searches, in order to avoid any
work on the schema.  Bit of a kludge, though.

Best,

A

В списке pgsql-general по дате отправления:

Предыдущее
От: Sameer Kumar
Дата:
Сообщение: Re: Trigger Firing Order
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: Question about optimizing access to a table.