Re: [HACKERS] 6.4 Aggregate Bug

Поиск
Список
Период
Сортировка
От David Hartwig
Тема Re: [HACKERS] 6.4 Aggregate Bug
Дата
Msg-id 35C36D42.FD2168FF@bellatlantic.net
обсуждение исходный текст
Ответ на 6.4 Aggregate Bug  (David Hartwig <daybee@bellatlantic.net>)
Список pgsql-hackers
Edmund Mergl wrote:

> David Hartwig wrote:
> >
> > While testing  my 6.4 patch to allow functions/expressions to be
> > specified in the ORDER/GROUP BY  clause (and not in the target list)  I
>
> will this patch allow the following syntax :
>
>   select count(SUBSTR(var,1,5)), SUBSTR(var,1,5) from t group by SUBSTR(var,1,5);
>
> This is important for writing database-independent code (e.g. it's the only
> syntax Oracle understands).
>
>

YES.  It also handles expressions like "x / 2".     Also, the functions (or
expressions) need not be in the target list.


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: MULTIBYE typo ?
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Problem with CVS access to current sources