RE: [HACKERS] Use of multiple || and precidence

Поиск
Список
Период
Сортировка
От Michael Davis
Тема RE: [HACKERS] Use of multiple || and precidence
Дата
Msg-id 93C04F1F5173D211A27900105AA8FCFC14529F@lambic.prevuenet.com
обсуждение исходный текст
Список pgsql-hackers
Yes!!!!
-----Original Message-----From:    Bruce Momjian [SMTP:maillist@candle.pha.pa.us]Sent:    Wednesday, March 17, 1999
1:58PMTo:    hackers@postgreSQL.orgSubject:    [HACKERS] Use of multiple || and precidence
 
I have made a change so that all operators except "+-*/%" are nowleft-associative, rather than being non-associative:
    select 'a' || 'b' || 'c';
The old code does:
    test=> select 'a' || 'b' || 'c';    ERROR:  parser: parse error at or near "||"
Is this a problem for people?  It will now not complain about
missingparens, but left-associate all these operations.  Any problems withthat?
The code still associates "+-*/%" so that "*/%" is done first, then"+-".
--   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,Pennsylvania
 
19026


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

Предыдущее
От: Jason Venner
Дата:
Сообщение: What does this mean: SIAssignBackendId: discarding tag 2147483505 in 6.3.4
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Modulo syntax