Re: STRICT function returning a composite type

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Alexander M(dot) Pravking" <fduch(at)antar(dot)bryansk(dot)ru>, pgsql-sql(at)postgresql(dot)org
Subject: Re: STRICT function returning a composite type
Date: 2003-11-13 17:14:27
Message-ID: 200311131714.27192.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thursday 13 November 2003 16:08, Alexander M. Pravking wrote:
> I noted that such a function returns an empty rowset if a NULL value is
> passed as an argument. Is it a bug or feature? I wish it was a feature,
> because I probably want to use this behavour.

From the SQL commands section of the manual:

RETURNS NULL ON NULL INPUT or STRICT indicates that the function always
returns NULL whenever any of its arguments are NULL. If this parameter is
specified, the function is not executed when there are NULL arguments;
instead a NULL result is assumed automatically.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Alexander M. Pravking 2003-11-13 17:19:45 Re: STRICT function returning a composite type
Previous Message Alexander M. Pravking 2003-11-13 16:08:00 STRICT function returning a composite type