Re: OCTET_LENGTH is wrong

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: OCTET_LENGTH is wrong
Дата
Msg-id 6071.1006530614@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: OCTET_LENGTH is wrong  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Ответы Re: OCTET_LENGTH is wrong  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-hackers
Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> Yes. Consider you have UNICODE database and want to sort by French or
> whatever LATIN locale.
>      SELECT * FROM t1 ORDER BY convert(text_column,'LATIN1');
> would be the only way to accomplish that.

That in itself would not get the job done; how is the sort operator
to know what collation order you want?

The SQL92 spec suggests that the syntax should be
... ORDER BY text_column COLLATE French;

(note collation names are not standardized AFAICT).  Seems to me it
should then be the system's responsibility to make this happen,
including any encoding conversion that might be needed before the
comparisons could be done.
        regards, tom lane


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

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: v7.2b3 packaged, but not announced beyond here yet ...
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: v7.2b3 packages rebuilt ...