Use of multiple || and precidence - Mailing list pgsql-hackers

From Bruce Momjian
Subject Use of multiple || and precidence
Date
Msg-id 199903172057.PAA16301@candle.pha.pa.us
Whole thread Raw
List pgsql-hackers
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@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 by date:

Previous
From: Terry Mackintosh
Date:
Subject: Re: [Fwd: Re: [HACKERS] Sequences....]
Next
From: Jason Venner
Date:
Subject: What does this mean: SIAssignBackendId: discarding tag 2147483505 in 6.3.4