Re: generic return for functions - Mailing list pgsql-sql

From Avi Schwartz
Subject Re: generic return for functions
Date
Msg-id BBDB60B2-9444-11D7-ACB0-000393AE5044@CFFtechnologies.com
Whole thread Raw
In response to Re: generic return for functions  (Rod Taylor <rbt@rbt.ca>)
List pgsql-sql
Exactly.  It is used with named parameters when the parameter is not 
provided.

Avi

On Sunday, Jun 1, 2003, at 07:21 America/Chicago, Rod Taylor wrote:

>> thing that causes me some minor grief is the fact that currently you
>> cannot have default values to function parameters, a feature we use a
>> lot.
>
> The default value is used when the parameter is NULL or unprovided?
>
> fn(integer, integer, integer default 32)
>
> select fn(integer, integer); <- Third argument would be '32'?
>
>
> When PostgreSQL gets named parameters the above probably makes sense to
> add.
>
> A TODO item?
-- 
Avi Schwartz
avi@CFFtechnologies.com



pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: generic return for functions
Next
From: Tom Lane
Date:
Subject: Re: generic return for functions