From: | Wim Bertels <wim(dot)bertels(at)ucll(dot)be> |
---|---|
To: | Igal Sapir <igal(at)lucee(dot)org>, "Psql_General (E-mail)" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Case Insensitive Comparison with Postgres 12 |
Date: | 2019-10-09 07:19:29 |
Message-ID: | C50B3141-4CCE-4924-A674-BD82BE23B333@ucll.be |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Using the datatype citext might be an alternative solution
Igal Sapir <igal(at)lucee(dot)org> schreef op October 8, 2019 10:51:52 PM UTC:
>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
--
Verstuurd vanaf een fairphone met K-9 Mail. Excuseer mijn beknoptheid.
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2019-10-09 07:34:31 | Re: Case Insensitive Comparison with Postgres 12 |
Previous Message | Pavel Křehula | 2019-10-09 07:10:36 | Re: Case Insensitive Comparison with Postgres 12 |