Re: Named arguments in function calls - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Named arguments in function calls
Date
Msg-id 14250.1075146484@sss.pgh.pa.us
Whole thread Raw
In response to Re: Named arguments in function calls  (Matthew Kirkwood <matthew@hairy.beasts.org>)
List pgsql-hackers
Matthew Kirkwood <matthew@hairy.beasts.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


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Disaster!
Next
From: "Thomas Hallgren"
Date:
Subject: Re: Functions returning complex types.