plperl function to return nulls

From: Brent Wood <b(dot)wood(at)niwa(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: plperl function to return nulls
Date: 2005-09-18 22:52:23
Message-ID: 20050919102610.L17472@storm-user.niwa.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I can't find a reference in the docs for this...

I have a plperl function returning an int. The int is returned as the
result of a system call.

It is set to return a null if one of the inputs is null, but I can't see
how to return a null if the result is indeterminate. The function
currently returns a 0 instead.

How do I stick an if in the function to return a null where appropriate?

Thanks,

Brent Wood

In response to

  • Query Cost at 2005-09-18 18:40:26 from ShepherdHill DB Subscriptions

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Rylander 2005-09-18 23:29:51 Re: Implementing a change log
Previous Message Michael Schuerig 2005-09-18 22:40:41 Implementing a change log