| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
|---|---|
| To: | Matthew Kirkwood <matthew(at)hairy(dot)beasts(dot)org> | 
| Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Rod Taylor <pg(at)rbt(dot)ca>, Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>, elein <elein(at)varlena(dot)com>, Greg Stark <gsstark(at)mit(dot)edu>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: Named arguments in function calls | 
| Date: | 2004-01-26 19:48:04 | 
| Message-ID: | 14250.1075146484@sss.pgh.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
Matthew Kirkwood <matthew(at)hairy(dot)beasts(dot)org> writes:
> ... Perhaps:
> select interest(amount := 500.0, rate := 1.3);
That might work, since := isn't a legal operator name.  It might pose a
conflict for clients like ECPG that like to use ":name" as a parameter
indicator, but since we don't have an identifier directly following ":"
it seems like they could cope.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Hallgren | 2004-01-26 20:04:16 | Re: Functions returning complex types. | 
| Previous Message | Alvaro Herrera | 2004-01-26 18:42:19 | Re: Disaster! |