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
[EMAIL PROTECTED]


---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to