Case Insensitive Comparison with Postgres 12

Поиск
Список
Период
Сортировка
От Igal Sapir
Тема Case Insensitive Comparison with Postgres 12
Дата
Msg-id CA+zig0-9TpMC6cmi9Vz5sGM5abhh0XF7H+xokjcRUSSmtV4aYQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Case Insensitive Comparison with Postgres 12  (Morris de Oryx <morrisdeoryx@gmail.com>)
Re: Case Insensitive Comparison with Postgres 12  (Wim Bertels <wim.bertels@ucll.be>)
Re: Case Insensitive Comparison with Postgres 12  (Laurenz Albe <laurenz.albe@cybertec.at>)
Re: Case Insensitive Comparison with Postgres 12  (Pavel Křehula <pavel.krehula@nlm.cz>)
Список pgsql-general
I am trying to test a simple case insensitive comparison.  Most likely the collation that I chose is wrong, but I'm not sure how to choose the correct one (for English/US?).  Here is my snippet:

create collation case_insensitive(
    provider=icu, locale='en-US-x-icu', deterministic=false
);
select 'Abc' = 'abc' collate case_insensitive;

I expected true but am getting false.

Any thoughts?

Thanks,

Igal

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

Предыдущее
От: Ron
Дата:
Сообщение: Re: Declarative Range Partitioning Postgres 11
Следующее
От: Morris de Oryx
Дата:
Сообщение: Re: Case Insensitive Comparison with Postgres 12