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

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: BUG #17853: COLLATE does not work with numeric column references in ORDER BY
Дата
Msg-id 3b32d6df-c6a4-c3fa-0eef-d4e2a8789fb6@postgresfriends.org
обсуждение исходный текст
Ответ на BUG #17853: COLLATE does not work with numeric column references in ORDER BY  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #17853: COLLATE does not work with numeric column references in ORDER BY
Список pgsql-bugs
On 3/18/23 23:44, PG Bug reporting form wrote:
> 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:

There is an argument that this should work.  There is also an argument 
that using numerical column references is not (or rather, is no longer) 
Standard SQL and should not be used.
-- 
Vik Fearing




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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17853: COLLATE does not work with numeric column references in ORDER BY
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17853: COLLATE does not work with numeric column references in ORDER BY