Re: Does UCS_BASIC have the right CTYPE?
От | Peter Eisentraut |
---|---|
Тема | Re: Does UCS_BASIC have the right CTYPE? |
Дата | |
Msg-id | ff0a908a-7dc3-46f8-afb3-1625237a2910@eisentraut.org обсуждение исходный текст |
Ответ на | Does UCS_BASIC have the right CTYPE? (Jeff Davis <pgsql@j-davis.com>) |
Ответы |
Re: Does UCS_BASIC have the right CTYPE?
Re: Does UCS_BASIC have the right CTYPE? |
Список | pgsql-hackers |
On 25.10.23 20:32, Jeff Davis wrote: > But what should the result of UPPER('á' COLLATE UCS_BASIC) be? In > Postgres, the answer is 'á', but intuitively, one could reasonably > expect the answer to be 'Á'. I think that's right. But what would you put into ctype to make that happen? > That seems to suggest the standard answer should be 'Á' regardless of > any COLLATE clause (though I could be misreading). I'm a bit confused > by that... what's the standard-compatible way to specify the locale for > UPPER()/LOWER()? If there is none, then it makes sense that Postgres > overloads the COLLATE clause for that purpose so that users can use a > different locale if they want. The standard doesn't have the notion of locale-dependent case conversion.
В списке pgsql-hackers по дате отправления: