BUG #17853: COLLATE does not work with numeric column references in ORDER BY

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #17853: COLLATE does not work with numeric column references in ORDER BY
Дата
Msg-id 17853-57fa4c939f613eb6@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #17853: COLLATE does not work with numeric column references in ORDER BY  (Vik Fearing <vik@postgresfriends.org>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17853
Logged by:          Branko Radovanovic
Email address:      branko.radovanovic.zg@gmail.com
PostgreSQL version: 13.4
Operating system:   Debian
Description:

The following SQL:

values ('a')
order by 1 collate "C";

...returns an error: SQL Error [42804]: ERROR: collations are not supported
by type integer

In the above query, "1" is not an integer but a column reference, so it
should be treated as well-formed and work the same as with the actual column
label:

values ('a')
order by column1 collate "C";

Best regards,
Branko


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

Предыдущее
От: Alexander Lakhin
Дата:
Сообщение: Re: BUG #17847: Unaligned memory access in ltree_gist
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: BUG #17853: COLLATE does not work with numeric column references in ORDER BY