| From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | pulsar(at)truenet-ce(dot)com(dot)br (Ricardo J(dot)C(dot)Coelho) |
| Cc: | pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] Multiples concatenation operator (||) |
| Date: | 1999-02-10 23:29:33 |
| Message-ID: | 199902102329.SAA27114@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(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 | Tom Lane | 1999-02-11 01:25:56 | New results for GEQO threshold |
| Previous Message | Ricardo J.C.Coelho | 1999-02-10 21:47:29 | Multiples concatenation operator (||) |