From: | Michael Davis <michael(dot)davis(at)prevuenet(dot)com> |
---|---|
To: | "'Bruce Momjian'" <maillist(at)candle(dot)pha(dot)pa(dot)us>, hackers(at)postgreSQL(dot)org |
Subject: | RE: [HACKERS] Use of multiple || and precidence |
Date: | 1999-03-17 21:46:29 |
Message-ID: | 93C04F1F5173D211A27900105AA8FCFC14529F@lambic.prevuenet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Yes!!!!
-----Original Message-----
From: Bruce Momjian [SMTP:maillist(at)candle(dot)pha(dot)pa(dot)us]
Sent: Wednesday, March 17, 1999 1:58 PM
To: hackers(at)postgreSQL(dot)org
Subject: [HACKERS] Use of multiple || and precidence
I have made a change so that all operators except "+-*/%" are now
left-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
missing
parens, but left-associate all these operations. Any problems with
that?
The code still associates "+-*/%" so that "*/%" is done first, then
"+-".
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania
19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-03-17 22:01:56 | Re: [HACKERS] Modulo syntax |
Previous Message | Jason Venner | 1999-03-17 21:09:59 | What does this mean: SIAssignBackendId: discarding tag 2147483505 in 6.3.4 |