Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Clark Evans <clark(dot)evans(at)manhattanproject(dot)com>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Date: 1999-05-10 00:51:25
Message-ID: 199905100051.UAA04402@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


This is fixed in 6.5 beta.

> Seth McQuale pointed out that the follwing does not work:
> SELECT LASTNAME || ',' || FIRSTNAME [AS] NAME FROM FRIENDS;
>
> The solution, was:
> SELECT ( LASTNAME || ',' ) || FIRSTNAME AS NAME FROM FRIENDS;
>
> I looked at pg_operator and didn't see any flag to mark
> an operator as 'associative'. Perhaps if we added a flag
> like this, the re-write system could be modified to handle
> cases like this.
>
> Thoughts?
>
> Clark Evans
>
>

--
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-05-10 00:54:27 Re: [HACKERS] parser enhancement request for 6.5
Previous Message Bruce Momjian 1999-05-10 00:43:58 Re: [HACKERS] Re: your mail