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

From Rod Taylor
Subject Re: generic return for functions
Date
Msg-id 1054470071.11968.115.camel@jester
Whole thread Raw
In response to Re: generic return for functions  (Avi Schwartz <avi@CFFtechnologies.com>)
Responses Re: generic return for functions
Re: generic return for functions
List pgsql-sql
> 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?
--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: Upgrade 7.2.3 -> 7.3 or more
Next
From: Avi Schwartz
Date:
Subject: Re: generic return for functions