| От | Stephen Frost |
|---|---|
| Тема | Bug with ordering aggregates? |
| Дата | |
| Msg-id | 20100518153734.GH21875@tamriel.snowman.net обсуждение исходный текст |
| Ответы |
Re: Bug with ordering aggregates?
Re: Bug with ordering aggregates? |
| Список | pgsql-hackers |
Greetings,
This doesn't seem right to me:
postgres=# select
postgres-# string_agg(column1::text order by column1 asc,',')
postgres-# from (values (3),(4),(1),(2)) a;string_agg
------------1234
(1 row)
I'm thinking we should toss a syntax error here and force the 'order by' to be at the end of any arguments to the
aggregate.Alternatively, we should actually make this work like this one does:
postgres=# select
postgres-# string_agg(column1::text,',' order by column1 asc)
postgres-# from (values (3),(4),(1),(2)) a;string_agg
------------1,2,3,4
(1 row)
Thanks,
Stephen
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера