Re: [HACKERS] Multiples concatenation operator (||)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Multiples concatenation operator (||)
Дата
Msg-id 199902102329.SAA27114@candle.pha.pa.us
обсуждение исходный текст
Ответ на Multiples concatenation operator (||)  ("Ricardo J.C.Coelho" <pulsar@truenet-ce.com.br>)
Список pgsql-hackers
> Hi,
> 
> Why "||" operator is not associative ?
> 
> select 'A' || 'B' || 'C';       results in a parse error at second "||".
> 
> If you force the association, it works: select ('A' || 'B') || 'C';
> 
> The same thing happen with mod "%".

It is a problem with the grammer not understanding associativity with
non-standard operators like ||.  No good solution for it.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: "Ricardo J.C.Coelho"
Дата:
Сообщение: Multiples concatenation operator (||)
Следующее
От: Tom Lane
Дата:
Сообщение: New results for GEQO threshold