Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)

Поиск
Список
Период
Сортировка
От Clark Evans
Тема Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Дата
Msg-id 36EECD53.82134000@manhattanproject.com
обсуждение исходный текст
Ответы Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)  (Bruce Momjian <maillist@candle.pha.pa.us>)
Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
Seth McQuale pointed out that the follwing does not work: SELECT LASTNAME || ',' || FIRSTNAME [AS] NAME FROM FRIENDS;

The solution, was: SELECT ( LASTNAME || ',' ) || FIRSTNAME AS NAME FROM FRIENDS;

I looked at pg_operator and didn't see any flag to mark
an operator as 'associative'.   Perhaps if we added a flag
like this, the re-write system could be modified to handle
cases like this.

Thoughts?

Clark Evans


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

Предыдущее
От: "D'Arcy" "J.M." Cain
Дата:
Сообщение: Re: [HACKERS] "CANNOT EXTEND" -
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: [HACKERS] Globe