Skip site navigation (1) Skip section navigation (2)

Re: Named arguments in function calls

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 (view raw or flat)
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

In response to

pgsql-hackers by date

Next:From: Thomas HallgrenDate: 2004-01-26 20:04:16
Subject: Re: Functions returning complex types.
Previous:From: Alvaro HerreraDate: 2004-01-26 18:42:19
Subject: Re: Disaster!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group